Insomnia: GraphQL | Invalid Syntax Error

Created on 8 Jun 2020  路  3Comments  路  Source: Kong/insomnia

Invalid Syntax error when adding return fields for a working query.

To Reproduce
Steps to reproduce the behavior:

  1. Go to a working query and execute normally (will execute ok).
  2. Edit query and add a return field with subselection.
  3. Execute again
  4. Invalid Syntax error
  5. Go back to original query
  6. Invalid Syntax error

Expected behavior
Not to have invalid syntax error if query is correct.

Screenshots
Query working fine
image
Modified query - Invalid Syntax
image

Back to original query - Invalid Syntax
image

Desktop (please complete the following information): 2020.2.1
image

Additional context

  • It is happening with all saved queries.
  • Happens since we updated with latest version.

Many thanks :)

Most helpful comment

Version 2020.2.2 has been released and issues seem to be fixed :)

Many thanks! 馃憤

All 3 comments

It seems like it's the last thing entered with a downloaded schema, so this:

query {
  currentUser
}

results in

{"query":"query {\n  \n}"}

You can even just use the github graph to reproduce:

The current version of Insomnia is basically unusable for GraphQL. I am experiencing some syntax error in both queries and variables.

Version 2020.2.2 has been released and issues seem to be fixed :)

Many thanks! 馃憤

Was this page helpful?
0 / 5 - 0 ratings