Rest Hippo ← Back to site

GraphQL

← Back to contents

Rest Hippo has a first-class GraphQL editor. Set a request's method to POST, point the URL at your GraphQL endpoint, and choose GraphQL as the body type.

The query editor

The Body tab splits into two panes: the Query editor and a Variables editor for the operation's JSON variables.

The GraphQL query editor

You can use {{variables}} in the query and variables, the same as any other body.

Fetching the schema

Click Fetch schema to run a GraphQL introspection query against the request's URL. Once the schema loads, Rest Hippo uses it for two things:

A validated query after fetching the schema

  1. Autocomplete — typing in the Query pane suggests fields, arguments, types, and enum values from your schema.
  2. Validation — the ✓ VALID badge now reflects whether your query is valid against the schema, not just syntactically.

After a schema is loaded, the status badge shows how many types are available. Right-click the badge to View Schema (a read-only, syntax-highlighted view of the SDL) or Download Schema to save it as a .graphql file.

Sending and reading the result

Click Send to run the operation. The response comes back like any other — pretty-printed and syntax-highlighted in the response viewer:

A GraphQL response

GraphQL servers return 200 OK even for query errors, so check the response body's errors array, not just the status code.


Next: WebSockets →