GraphQL
Gud API includes a GraphQL mode so you can send queries (and mutations) with variables in one place.
Layout
You typically get:
- A Query editor for the GraphQL document
- A Variables editor for JSON variables passed with the request
The client sets the method to POST and sends application/json with the query and variables in the shape your server expects.
Tips
- Use variables for dynamic parts of the query instead of string concatenation — same benefits as REST: clearer and safer.
- If your GraphQL endpoint is GET-only (uncommon), use a normal GET request with the query in the URL instead; most public APIs use POST.
Related
- Sending requests — headers and auth
- Environments —
for your GraphQL endpoint