graphql / graphql/graphiql

Plugin: auto-exclude unused variables from request

Open
#981 4 comments 2 reactions 0 assignees View on GitHub
graphiql potential plugin
Dominant language
TypeScript
Stars
16.9k
Forks
1.9k
Avg merge
22h 45m
Merged PRs (30d)
70

Description

Right now GraphiQL will send the full value of the `variables` form, even if they query itself doesn't make use of them. This can be pretty cumbersome on e.g. Hasura where it'll refuse to run a query if it sees unexpected variables present, but you might have multiple operations with their own variables and you want to be able to run them in quick succession.

It'd be nice if, just like auto-setting an `operationName`, GraphiQL plucked only the relevant variables to be sent to the server.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.