Skip to main content

Generate code from your GraphQL schema and operations with a simple CLI

npm

Choose Live Example:

Schema typesTypeScriptfrontendbackend
[object Object]

Generate Code Instantly

Generate code from your GraphQL schema and GraphQL operations with a single function call regardless of your environment or code format.

[object Object]

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.

[object Object]

Customize Easily

One of the goals of GraphQL Codegen is to allow you to easily customize the output, and add custom behaviour according to your needs.

[object Object]

And more!

You can generate your resolvers' signatures, dump schemas, model types, query builders, React Hooks, Angular Services, and much more!