GraphQL
### A countryGRAPHQL https://countries.trevorblades.com/graphql
query Country($code: ID!) { country(code: $code) { name capital }}
{ "code": "GB" }- Use the
GRAPHQLmethod, as JetBrains IDEs do, or a normalPOSTwith anX-REQUEST-TYPE: GraphQLheader, as VS Code REST Client does. - The body is the query or mutation, optionally followed by a blank line and a JSON object of variables.
- In the form, the request shows Query and Variables boxes.
{{variables}}work in both, and a GraphQL request can be chained like any other:{{country.response.body.$.data.country.name}}.