Your Docusaurus site did not load properly.

A very common reason is a wrong site baseUrl configuration.

Current configured baseUrl = / (default value)

We suggest trying baseUrl =

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


Choose Live Example:

Schema typesTypeScriptfrontendbackend

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.

[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!