GraphQL Query Validator
GraphQL Query Validator checks a GraphQL query against an optional schema in your browser. Paste the query and schema, and see syntax errors and schema violations with line and column numbers. Nothing is sent to a server and the query is never executed.
How to use GraphQL Query Validator
- Paste the GraphQL query or mutation you want to check.
- Optionally paste the GraphQL schema in SDL format.
- Read the validation result and fix any errors.
Frequently asked questions
Is my query sent to a server?
No. The query and schema are validated locally by graphql-js in your browser. They never leave the tab.
Do I need to provide a schema?
No. Without a schema, the tool checks that the query is valid GraphQL syntax. With a schema, it also checks that fields, arguments and types match.
Does it execute the query?
No. It only parses and validates the query; no resolver is run and no network request is made.
Next step
Format or minify the query next. Open GraphQL Formatter.