Closed
Description
I am not sure if this is a bug or I am missing some reading.
Suppose my mutation takes in an argument person
, of type Person.
Person has a field named id
, and a field tools
which is a list of type Tool.
Tool also has a field named id
.
The problem is, when I indeed serialize the argument object into graphql.
mutation M {
test: testMutation (
person: {
id: 'test-id',
tools: [{
id: 'test-tool-id'
}]
}
) {
result
}
}
The query results in an error saying that there can only be one input field named "id".
Is the format I am using wrong?
Metadata
Metadata
Assignees
Labels
No labels