Insomnia: GraphQL editor not saving properly

Created on 2 Jun 2020  路  10Comments  路  Source: Kong/insomnia

If you type in the query manually, it get saved. But if you click on the suggested pop up, it doesn't get saved.

Peek 2020-06-02 11-57

image

high priority

Most helpful comment

This should be fixed now in version 2020.2.2 https://insomnia.rest/changelog/core/2020.2.2

All 10 comments

  • have the same issue after update to Version 2020.2.0

+1

Also, these fields disappear from the request.

Hmm, I cannot seem to reproduce this on my end. Can someone here do a bit more digging to see if there's a specific case where it happens and if it happens in other areas of the app? 馃檹

Also... can you let me know if there are any errors in View > Toggle DevTools > Console?

Also, again... if anyone can share a public graphql endpoint that reproduces this, that would be great! 馃榿

@gschier seems I got it.
If there is an error on schema validation, autocomplete works unpredictably.

I have this error in console when type any symbol in query

Uncaught Error: Names must match /^[_a-zA-Z][_a-zA-Z0-9]*$/ but "en-KE" does not.

In this case query not saves and when I try to send it, sends only part.
Switching to other query and back (like @tipputhynhean described in first message) leaves only part of query in editor.

If there is an error on schema validation

+1
I had a types in schema without defined fields
After i fixed this, all works fine.

Insomnia

Thanks for the details @general-CbIC and @AndreyD. It seems like updating our graphql dependency might do the trick but we should also add some extra safeguards around parse failures.

I had the same problem
screen capture image
please see here: https://transfer.sh/108YbX/Kapture%202020-06-07%20at%2019.50.30.gif

Insomnia:2020.2.1 (2020.2.1)
macOS:10.15.5 (19F101)
This problem was not found in the previous version of Insomnia

This should be fixed now in version 2020.2.2 https://insomnia.rest/changelog/core/2020.2.2

Was this page helpful?
0 / 5 - 0 ratings