Support Graphql unused inputs #9669
Replies: 1 comment
-
|
Hi, Thank you for your suggestion. A feature request has been raised to add automatic removal of unused GraphQL variables before query execution, similar to Apollo's behavior in insomnia. Thank you. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello ! 👋
I recently switched from Apollo to insomnia and noticed something Apollo does by default and that is not present on Insomnia. It happens when you do a query like this :
So graphql does not accept unused params in requests, same as unused fragments (and maybe other things).
However, what I just realized is that Apollo even though tells you in the editor that those are unused, will remove them automatically if you decide to still execute the query, so that it doesn't fail and doesn't give you something like this :
This is pretty useful when you're messing around with queries and just wanna comment a few parts of the query without having to comment tons of things for every test.
Really enjoy your tool otherwise thanks !
Beta Was this translation helpful? Give feedback.
All reactions