I've added relations to my schema, and every query that i run with these relations gets this error:
unexpected variables in variableValues
What can i do?
Can you share the query, variables, and the exact error response?
sure thing! 馃憤
query:
{
b {
a {
id
}
}
}
no variables.
error response
{
"errors": [
{
"extensions": {
"path": "$.variableValues",
"code": "validation-failed"
},
"message": "unexpected variables in variableValues: products"
}
]
}
I'm confused. There were variables in there from a previous query, but graphiQL didn't show them.
Deleting them solved my problem 馃ぃ
Most helpful comment
I'm confused. There were variables in there from a previous query, but graphiQL didn't show them.
Deleting them solved my problem 馃ぃ