GraphQL Variables
Tell us about the task you want to perform and are unable to do so because the feature is not available
Finding it hard to use the graphql feauture since the query needs to be edited again and again for minor changes in values.
Describe the solution/feature you'd like us to add
Introduce a section for graphql variables .
Any other feedback you would like to provide regarding the site
@ashitaprasad We can send it through the body of graphql
Thanks for raising the issue @Clasherzz This feature will definitely be very useful
In GraphQL, the standard practice is to provide variables in the form of JSON. So, a simple JSON text editor (like that for JSON content-type request body) should be preferred.
Instead of parsing form inputs, handling type conversions and rebuilding the json, this will be more efficient.
And, it will also pave way for other graphQL features like filters & mutation.
Ref:
- https://www.contentful.com/blog/how-to-use-graphql-variables/
- https://dgraph.io/docs/query-language/graphql-variables/
- https://hygraph.com/docs/api-reference/content-api/variables
@ashitaprasad I see i didn't knew that . Would come back after learning more about this