
About GraphQL Code Generator
GraphQL Code Generator reads your GraphQL schema and operations and writes typed code for them. It removes the need to keep hand-written types in step with the schema.
What it does
You point the CLI at a schema and your query or mutation files, and it generates TypeScript types, typed client functions and, with the right plugin, typed resolvers for a server. Watch mode regenerates the output whenever the schema or an operation changes, which keeps development fast. The tool has a large plugin system with more than 50 plugins and presets, covering frameworks such as React, Vue and Apollo as well as languages like Java, C# and Dart. It can also merge all type definitions and print one final schema file.
Key features
- Generate TypeScript types for queries and mutations
- Build typed resolvers for GraphQL servers
- Run watch mode during development and in CI
- Use plugins for React, Vue, Apollo, Java and more
- Print one merged .graphql schema file
Who it's for
Frontend developers who query GraphQL APIs and backend teams that write GraphQL servers will both benefit. Teams that want type safety from schema to UI can use the client preset as a starting point.
Pricing and good to know
The project is open source under the MIT license and is free to use. It is part of The Guild's Hive ecosystem, and it works best when your schema is treated as the single source of truth. Generated files should usually be committed or rebuilt in CI so the team sees the same types.
Highlights
- Generate TypeScript types for queries and mutations
- Build typed resolvers for GraphQL servers
- Run watch mode during development and in CI
- Use plugins for React, Vue, Apollo, Java and more
- Print one merged .graphql schema file












