Choose Live Example:
This is the simplest example of generating output based on a GraphQL Schema. Codegen will generate the compatible base type, based on your schema. These type declarations are 1:1 to your schema, and it will be used as base types for other Codegen plugins (such as
typescript-operations), while combined into the same file.
Generate Code Instantly
Generate code from your GraphQL schema and GraphQL operations with a single function call regardless of your environment or code format.
Watch For Changes
Watch for changes in your GraphQL schema and operations, and automatically generate code as you go. Codegen easily integrates into your development workflow.
One of the goals of GraphQL Codegen is to allow you to easily customize the output, and add custom behaviour according to your needs.
You can generate your resolvers' signatures, dump schemas, model types, query builders, React Hooks, Angular Services, and much more!