New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: Unable to input UUID as argument for an ID field #49
Comments
Hello 👋 As a workaround you will need to manually parse it [ReferenceResolver]
public static Foo GetByFooBar(
[LocalState] ObjectValueNode data
Data repository)
{
// TODO implement logic here by manually reading values from local state data
} |
@dariuszkuc Is this intentional, because this is handled transparently in the previous federation implementation? |
The underlying issue is with the When we invoke the Since [ReferenceResolver]
public static Foo GetByGuid(
string id
Data repository)
{
var guid = Guid.Parse(id);
// TODO implement logic here by manually reading values from local state data
} I am unsure whether |
Ah ok that makes sense, we weren't using ID types before so that would explain why we didn't see it. |
I tried the above suggestion of using string in the
|
Please provide a link to a repository that reproduces the issue. Otherwise it is very hard to determine what is the underlying issue. |
In
ArgumentParser.TryGetValue<T>
, the casting of all string value node type is done in the following manner:Refer here.
This causes the following error from the subgraph when the input type for an ID field is UUID:
The text was updated successfully, but these errors were encountered: