Graphql-engine: "unexpected variables in variableValues" on every relation query

Created on 30 Aug 2019  路  3Comments  路  Source: hasura/graphql-engine

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?

question supporneeds-more-info

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 馃ぃ

All 3 comments

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 馃ぃ

Was this page helpful?
0 / 5 - 0 ratings

Related issues

revskill10 picture revskill10  路  3Comments

hooopo picture hooopo  路  3Comments

shahidhk picture shahidhk  路  3Comments

sachaarbonel picture sachaarbonel  路  3Comments

tirumaraiselvan picture tirumaraiselvan  路  3Comments