GraphQL Query Builder
Choose fields from a sample or local SDL schema. Add nested selections, aliases and typed variables, then download the checked operation.
Build a Blog Query With GraphQL Variables
Choose fields from a sample or a local SDL schema. Enter argument values as JSON, with quotes around strings and IDs.
GraphQL Query Builder: how to use it
- Choose Blog API, E-commerce API, Repository API or a complete local SDL schema.
- Select an operation type and fields. Add optional aliases and enter argument values as JSON.
- 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.