Code · Made a little simpler

GraphQL Query Builder

Choose fields from a sample or local SDL schema. Add nested selections, aliases and typed variables, then download the checked operation.

Free to useNo account neededProcessed on your device
Your workspaceProcessed on your device

Choose fields from a sample or a local SDL schema. Enter argument values as JSON, with quotes around strings and IDs.

Fields on Query
  • List published posts.

  • Look up one post.

  • Look up the current viewer.

Add this tool to your website

Paste this code into your page to add the tool and a visible ToolMellow credit link.

HTML embed code
Preview embed

GraphQL Query Builder: how to use it

  1. Choose Blog API, E-commerce API, Repository API or a complete local SDL schema.
  2. Select an operation type and fields. Add optional aliases and enter argument values as JSON.
  3. Review the operation and variables once schema checks pass. Copy or download either file.

Limits and notes

160,000 schema characters, 18,000 GraphQL tokens, 2,000 local-schema output fields, 100 selected fields and six nested levels. Union selections expose the type name. The builder verifies a saved schema without a live endpoint.

How your privacy works →

GraphQL Query Builder: common questions

Which operation types are available?

The samples each offer query, mutation and subscription. A local SDL schema offers the root operation types it defines.

How should I enter an ID or input object?

Quote IDs and strings in the argument field. Use a JSON object for an input value with multiple properties, and keep large identifier digits in a string.

Why does __typename appear in the generated operation?

GraphQL object fields need a nested selection. If you have not selected child fields, the builder uses __typename as the initial selection.

Guides