Skip to main content

GraphQL Schema Validator v2

Deep-validate your GraphQL SDL: type references, interface implementations, union members, directive usage, and an introspection preview showing all types with field counts. Nothing is sent to any server — runs entirely in your browser.

✓ Type validation ✓ Interface checks ✓ Introspection preview
Validation results will appear here

Frequently Asked Questions

What does GraphQL Schema Validator v2 check that a basic linter doesn't?▼

This validator performs semantic checks beyond syntax: it verifies that every referenced type actually exists in the schema, that types implementing interfaces declare all required fields, that union members are valid object types, and that no unknown directives are used. It also generates an introspection preview listing every type with its field count — the same data a GraphQL server exposes via the __schema query.

What is an interface implementation check?▼

In GraphQL, if a type declares it implements an interface (e.g., type Dog implements Animal), it must define every field that the interface requires, with matching or compatible types. This validator parses all interface definitions, collects their required fields, then checks each implementing type to confirm those fields are present. Missing fields produce errors.

What are valid union member types?▼

A GraphQL union can only contain concrete object types — not scalars, not interfaces, not input types, not enums. For example, union SearchResult = User | Post | Article is valid. union SearchResult = String | User is not. This validator reads each union's member list and confirms every member resolves to a defined object type in the schema.

What directives are allowed in standard GraphQL SDL?▼

The GraphQL spec defines four built-in directives: @deprecated (marks fields, enum values, arguments as deprecated), @skip and @include (conditional execution in queries), and @specifiedBy (for custom scalars with a URL spec). Any directive not in this list — such as @auth, @cacheControl, or custom directives — will be flagged as unknown unless your schema explicitly defines them with a directive definition.

What is an introspection preview?▼

GraphQL servers expose a built-in __schema query that returns all types, fields, and directives in the schema. This tool simulates that output by parsing your SDL and listing every type by kind (type, interface, enum, input, union, scalar) along with its field count. It is useful for auditing how large your schema is and for verifying that all expected types parsed correctly.

Does this tool send my schema to a server?▼

No. All parsing and validation runs entirely in your browser using JavaScript. Your GraphQL schema — which may describe your data model, access control structure, and API surface — never leaves your machine. No network requests are made when you click Validate.

Share this tool: X / Twitter LinkedIn
✓ 60,000+ developers use DevPlaybook ★★★★★ 4.8 / 5 on Gumroad ✓ MIT licensed · Instant download ✓ No login required

Related Products

on Gumroad

You Might Also Need

More Free Tools

GraphQL Query Builder OpenAPI Validator JSON Schema Form Builder GraphQL Fragment Generator GraphQL Query Formatter JSON Schema to Zod Converter SQL to TypeScript Types API Response Mock Generator API Response Time Tester JSON Schema Generator JSON-LD Schema Generator Zod Schema Generator OpenAPI Schema Validator Prisma Schema Visualizer OpenAPI Mock Generator Prisma Schema Builder LLM JSON Schema Builder GraphQL Client Configurator OpenAI Function Calling Generator API Test Case Generator TypeScript Discriminated Union Builder Database Schema Diff API Request Builder TypeScript Playground TypeScript to JavaScript Converter TypeScript tsconfig.json Generator API Mock Server Config Generator Drizzle Schema Generator Neon DB Query Builder API Rate Limit Calculator API Response Formatter & Analyzer HTTP API Tester JSON to TypeScript Interface SQL ERD Diagram Generator LLM Cost Calculator AI Prompt Cost Calculator REST API Request Builder Database Schema Visualizer Mock Service Worker (MSW) API Mocking Guide Pulumi Modern IaC Guide LLM Prompt Cost Calculator API Response Mocker AI Rate Limit Calculator Zustand Store Builder Axios Interceptor Builder Jest Mock Generator PlanetScale Branch Manager Turso Edge DB Explorer API Key Generator AI Doc Generator — Pro Tool Code Tools ESLint Config Generator HTTP Methods Reference HTTP Code Snippet Generator HTTP Status Code Reference HTTP Status Code Reference Interview Question Generator JSON Diff Viewer JSON Diff Prettier Config Generator Rate Limiter Tester API Changelog Generator HTTP Mock Response Builder Rate Limit Calculator CORS Policy Builder Grafana Dashboard JSON Validator Haproxy Config Validator HTTP Status Code Lookup HTTP Status Code Lookup Vue Component Generator HTTP Status Code Reference Vitest Configuration Generator LLM Context Window Calculator LLM Token Counter Jest Coverage Config Generator Prompt Token Estimator YAML Validator Pro AWS CDK Infrastructure as Code Guide Playwright Test Generator MCP Endpoint Tester Pulumi Stack Config Generator HTML5 Canvas API Playground Token Context Calculator TanStack Query Config Builder SWR Config Generator Jotai Atom Explorer Token Counter & Cost Estimator AI API Rate Limit Calculator React Component Generator

Enjoying this tool? Get more like it.

Weekly developer tool guides, productivity playbooks & AI tricks. Free. No spam.

DevPlaybook Pro 7 days free

Unlock AI-Powered Dev Tools

  • ⚡ AI Code Review, Doc Generator & SQL Builder
  • ⚡ All premium templates & early access
  • ⚡ Member discounts on Gumroad products
Start Free Trial →

$9/mo after trial · Cancel anytime

Want the full toolkit?

Get DevPlaybook Pro

Every template, guide, boilerplate, and automation script in one bundle. 13 premium products — grab them all at once and save big.

$79
$241 separately Save $162 (67% off)
Get DevPlaybook Pro — $79 →

MIT licensed · Instant download · No subscription

See what's included → Browse all deals →