This repository was archived by the owner on Oct 19, 2024. It is now read-only.

Description
With mu-graphql-0.5.0.3, if I have:
type Mutation {
updateItemState(newState: String): Item!
}
and I try a mutation like:
mutation test($newState: String) {
updateItemState(newState: $newState) {
<field selection>
}
}
I don't see a way to avoid setting $newState to a string. In the JSON request if I use:
I get a graphql error:
{
"errors": [
{
"message": "variable 'newState' was not found"
}
]
}
If I instead do:
"variables": {"newState": null}
I get:
{
"errors": [
{
"message": "argument 'newState' was not of right type"
}
]
}
Is this a bug or am I missing something? For my case, preferably "variables":{} would work since that's what my graphql client lib does.