JSON KitJSON to GraphQL Schema

JSON to GraphQL Schema

Generate GraphQL type definitions from any JSON sample — with nullability and ID detection.

Loading editor…
Loading editor…

Related Tools

Frequently Asked Questions

What does this generate?
It generates GraphQL type definitions (type Foo { ... }) from a JSON sample. Each nested object becomes its own type. Field nullability is inferred from the sample values.
How are nulls handled?
A null field generates a nullable type (no ! suffix). Non-null values get the non-null marker (String!). UUIDs generate ID! type.
Can I use this as a starting point for a schema?
Yes. Copy the output and add Query/Mutation types, resolvers, and any custom scalars. The generated types capture the data shape — you wire up the business logic separately.
Does it support subscriptions or mutations?
This tool generates type definitions only — the data shape. Add Query, Mutation, and Subscription types manually around the generated types.