Variables
Variables
GraphQL offers a way to reuse your queries dynamically through variables. These will come into play especially if you're accessing the API programmatically (such as our Node or Python examples).
Before:
With variables:
Here's an example of what this would look like in the API Explorer:
See also
Working with variables from GitHub's GraphQL API docs (archive.org)
GraphQL Variables from Shopify's API docs (archive.org)
Last updated