GraphQL to TypeScript
Generate TypeScript types for operation results and variables from your schema and selections. Use aliases, fragments and nullability in client code.
Include any fragments referenced by your operations.
Your input stays in this tab and clears when you reload.
Frequently asked questions
Related developer tools
GraphQL Operation Validator
Check queries, mutations and subscriptions against a pasted schema. Find unknown fields, invalid variables and fragment errors before running a request.
GraphQL Formatter & Minifier
Format a query, mutation, fragment or schema for review, or minify it for transport while preserving string values.