GraphQL Playground

Write and run GraphQL queries against an endpoint.

The GraphQL Playground sends a GraphQL operation to an endpoint you enter and shows the JSON response. It can check and format your query, send variables and custom headers, and load a summary of the server's schema through introspection.

What is GraphQL over HTTP?

GraphQL is a query language for APIs. Instead of many endpoints, a client sends one document to a single endpoint, and the response has the same shape as the fields requested. The usual transport is an HTTP POST with a JSON body holding a query string, an optional variables object and an optional operationName. A response contains a data key and, when something failed, an errors array, so a request can return HTTP 200 and still report errors. Servers also describe their typed schema through introspection, which clients query using the special __schema field. This playground builds exactly that POST body with Content-Type and Accept set to application/json, parses your query locally first so syntax mistakes are caught before sending, and sends the request to the endpoint URL you enter. Like any browser request, a direct call is subject to CORS. An optional server relay exists but is off unless the server operator enables it, and a relayed request, including its headers, passes through that server.

How to use GraphQL Playground

  1. Enter the endpoint Type the full URL in Endpoint URL, for example https://api.example.com/graphql.
  2. Write the operation Type the query or mutation in Query. Use Format to tidy it and Check syntax to validate it without sending.
  3. Add variables, operation name and headers Put a JSON object in Variables (JSON), optionally set Operation name (optional), and add any headers the endpoint needs.
  4. Choose how to send Keep Send directly from the browser or choose Send through the server relay if it is enabled, set the Timeout, then press Send. Cancel stops a pending request.
  5. Read the result or load the schema Review status, time and body in the response. Press Introspection to fetch the schema and browse the Schema types tree.

Frequently asked questions

Where does my query go?

To the endpoint URL you enter, with your headers and variables. In direct mode the browser sends it straight there. In relay mode it goes through the NerdDeveloper server, whose operator can see the URL, headers including credentials, and the body. The query is only parsed locally, and the tool does not claim nothing leaves the page.

Is the server relay always available?

No. It is disabled by default on the server. The page checks the server's status on load and disables the relay option, with a reason, when it is off or unreachable. When on, it blocks localhost, private, loopback and link-local targets, follows at most 3 redirects, limits the response to 1,000,000 bytes, allows 10 seconds per call and 20 relayed requests per minute per client. These are the server defaults and the operator can change them.

Which HTTP method does it use?

Always POST with a JSON body. Servers that only accept GET for queries, and subscriptions over WebSocket or server-sent events, are not supported.

Why do I see errors with HTTP 200?

GraphQL reports field-level and validation problems inside the response body, so the transport can succeed while the operation partly or fully fails. Check the errors array in the response.

Is anything saved?

This tool keeps no history and writes nothing to browser storage. The endpoint, query, variables and headers stay in the page until you leave or reload it.

Does it validate my query against the schema?

No. It checks syntax only. Whether fields and types exist is decided by the server, which reports problems in the errors array. Use Introspection to see the available types.