-
Notifications
You must be signed in to change notification settings - Fork 8
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: