Insomnia: [Feature Request] Send GraphQL request with GET method and query variables as get-param

Created on 15 Jan 2020  路  4Comments  路  Source: Kong/insomnia

For example - Instagram API accept only GET request to GraphQL API.

https://www.instagram.com/graphql/query/?query_hash=42c6ec100f5e57a1fe09be16cd3a7021&variables=%7B%22item_id%22%3A%229722754712113500858%22,%22story_viewer_fetch_count%22%3A50,%22story_viewer_cursor%22%3A%2250%22%7D

Need pass query variables to get-param variables as json-string.

But currently can't pass query variables to get-param.
image

Workaroud - edit json in Query tab, but this is not useful:

image

Most helpful comment

+1

Prismic.io GraphQL API also uses the GET method instead of POST. Writing the GraphQL query inside the value field of an item on the Query tab is super awkward.

Insomnia GraphQL GET

It would be great to be able to use the normal GraphQL editor in these cases.

All 4 comments

+1

Prismic.io GraphQL API also uses the GET method instead of POST. Writing the GraphQL query inside the value field of an item on the Query tab is super awkward.

Insomnia GraphQL GET

It would be great to be able to use the normal GraphQL editor in these cases.

If this can help anyone... https://github.com/dee-see/post-to-get-proxy Made it to workaround this problem

That's a pretty good idea @dee-see Thanks!

Still think this should be done by Insomnia, GraphQL GET is importand for many GraphQL servers having a cache in front of them (bigger venues do many times), and it's not that big thing, instead of creating a BODY, this should create the extra Query parameters. So Insomnia's UI would not need to change at all.

Would mean a big deal to me too!

TIA, Joris

Was this page helpful?
0 / 5 - 0 ratings