Skip to content

Tutorial: GraphQL query with variables

Time: ~8 minutes · Level: Intermediate

Steps

  1. Open the request panel and switch to GraphQL mode (exact control depends on version).
  2. Set URL to a public GraphQL endpoint (e.g. your API or a demo you trust).
  3. In Query, paste a minimal query (e.g. query { __typename } if the server allows introspection, or your real field selection).
  4. In Variables, paste {} or a JSON object matching your query’s $vars.
  5. Send and read the response in Pretty.

Checklist

  • [ ] Errors from the GraphQL server appear in the response body (fix query vs variables)
  • [ ] Variables JSON is valid (no trailing issues)

Related: GraphQL