GraphQL Schema Lab

GraphQL Schema Lab

SDL, query and variables

Local query mock profile: one query, object/input/enum and built-in scalars, standard directives · SDL 24,000 / query 16,000 / variables 12,000 characters · 250 selections / 12 levels

Parsing, validation and mock execution run in this browser. The tool makes no server or API request with your pasted content.

Validation and mock result

Edit the inputs and run validation.

Comments & questions

GraphQL Schema Lab

A GraphQL query can parse yet still violate its schema: required arguments may be absent, variable positions may be incompatible, and fragments may form cycles. Paste an SDL schema, one query and a variables object to check those rules in the browser. For a valid query, inspect the selected field paths and a type-shaped synthetic response.

Key features

  • Validate SDL schema and one query against GraphQL field, argument, fragment and variable rules
  • Separate SDL/query syntax, contract validation and JSON variable coercion errors with source locations
  • Expand direct, aliased and fragment selections into typed field paths
  • Execute standard include/skip directives against deterministic local synthetic values
  • Export the diagnostics, graph and mock JSON as a report

How to use

  1. Load the valid example or paste your own SDL schema.
  2. Enter a single query and, where needed, a JSON object of variable values.
  3. Run validation and inspect each error stage and source location.
  4. For a valid query, compare selected field paths with the synthetic response.
  5. Edit inputs and rerun; save a report only when you choose.

Use cases

  • Find a missing required field argument before integrating a client query
  • Diagnose a fragment cycle or an incompatible variable declaration
  • Review aliases and nested return types during API client development
  • Explore the response shape without connecting to a live GraphQL server

Frequently asked questions

Does this call my GraphQL server?

No. SDL, query and variables stay in current browser memory. GraphQL.js validates the contract and executes only deterministic synthetic field values; no URL or real resolver is used.

What language features are supported?

Exactly one query operation with object, input, enum and built-in scalar types; normal aliases, fragments, variables and standard include/skip directives are supported. Mutations, subscriptions, multiple operations, interfaces, unions, custom scalars/directives and introspection are outside this bounded mock profile.

Are the example values real?

No. Strings, numbers, IDs and booleans are reproducible placeholders derived from field paths. Lists contain one synthetic item. No database values, authorization rules or custom resolver behavior are represented.

Why can the graph show a field absent from JSON?

The graph is a static view of all selected branches. The mock executes standard include/skip directives using your variables, so a conditional branch can be omitted from JSON.

Is a valid result a full GraphQL conformance certificate?

No. Validation uses GraphQL.js rules for this bounded input, while server-specific schema extensions, resolvers, performance and business rules are not tested.

Privacy

Inputs are processed in browser memory. No GraphQL endpoint, schema registry or resolver is contacted. An exported report contains your field names and diagnostics.

References

Related Tools

JSON Schema ValidatorOpenAPI Contract InspectorAPI Mock SandboxWasm Module InspectorHreflang Matrix CheckerAST Query PlaygroundContainer Build GraphDependency Graph ExplorerSemver Range LabCron Schedule AuditorPatch Review WorkbenchSource Map ExplorerLocalization Catalog AuditorStructured Data ReviewerHTTP Archive AnalyzerWebhook Signature LabProtobuf Schema WorkbenchAvro Schema EvolutionLocal SQL WorkbenchSchema Form BuilderMesh Repair WorkbenchPipe Network LabRobot Arm Kinematics LabThermal Network LabBeam Response LabGear Train DesignerTolerance Stackup LabSensor Calibration FitPCB Stackup PlannerDigital Filter DesignerNetwork Reachability MapSun Shadow MapGPS Error SimulatorDigital Logic SimulatorAnalog Circuit LabMechanism Linkage LabAnalysis Mesh GeneratorDatabase Migration PlannerDimensional Equation CheckerTruss Force LabBoolean Minimization LabControl Response LabQueueing Simulation LabGeofence Event SimulatorCoordinate Reference LabSurvey Traverse LabRaster Classification LabChoropleth Design LabMap Print ComposerRaster Reprojection LabElevation Contour MakerTerrain Viewshed LabWatershed DelineatorMap Tile PackagerText File Encoding WorkbenchFilesystem Portability AuditorSBOM License ExplorerFile Signature Auditornpm Lockfile Conflict ResolverSource Secret AuditorOffline Web Package BuilderCertificate Chain InspectorTorrent Metainfo InspectorChunked File PackagerEncrypted File VaultDuplicate File FinderArchive WorkbenchDesign Token ManagerSpacing Token DesignerResponsive Type SystemPackaging Dieline DesignerSVG Icon Sprite PackerFlex Layout PlaygroundCSS Grid PlaygroundRegex Equivalence LabMarkdown Repository AuditorLog Template MinerResponsive Layout AuditorEmail Template PreviewInternal Link GraphState Machine TesterPetri Net SimulatorGit History VisualizerCurl Request WorkbenchBinary Protocol DesignerHex File EditorBinary Patch WorkbenchFile Signature WorkbenchSchema Column MapperEvent Log SessionizerER Diagram DesignerTime Series Gap AuditorStratified Data SplitterData Lineage DesignerDecision Tree LabData Anonymization WorkbenchData Expectation RunnerBasket Pattern AnalyzerRobots Policy TesterSEO HTML AuditorAccessibility Structure AuditorSyndication Feed WorkbenchIndexNow Payload BuilderCrawl Log AnalyzerCSP Policy WorkbenchSearch Performance AnalyzerCSV Formula Risk AuditorCORS Response SimulatorCache Header LabCookie Policy InspectorWeb Vitals Trace LabSitemap Health AuditorBatch File RenamerFile Manifest VerifierFolder Space MapFolder Difference ReviewerRoute Order OptimizerGeoJSON Map EditorPolygon Overlay LabCartographic Label PlacerSpatial Table JoinGeoJSON Topology AuditorGPX Track AnalyzerTrack Privacy RedactorCSV Table JoinCSV Pivot WorkbenchScientific Data ProfilerTabular Cleaning WorkbenchRecord ReconciliationData Dictionary BuilderCanonical Graph AuditorRedirect Plan TesterHTTP response and ping reference testBrowser and System InformationJSON ↔ YAML ConverterXML ↔ JSON ConverterHTML FormatterJavaScript MinifierMock Data Generator.gitignore GeneratorLicense GeneratorUser-Agent ParserPassword Strength CheckerCode to ImageXML FormatterHTTP Status Code LookupMIME Type LookupJS & SQL String EscapeCSS Box Shadow GeneratorCSS Gradient GeneratorIndent ConverterNumber Base ConverterUnicode Escape ConverterUnicode InspectorJSON Structure DiffMarkdown Table GeneratorBase64 EncoderJSON FormatterURL EncoderSQL FormatterCron Expression GeneratorRegex TesterUUID GeneratorHash GeneratorTimestamp ConverterJWT DecoderHTML Entity ConverterMarkdown PreviewCSS MinifierMeta Tag GeneratorJSON ↔ CSVCase ConverterImage to Base64
Explore all Dev Tools tools →Image/Media →Text/Convert →Life/Fun →