GraphQL Codegen
Effortlessly generate comprehensive code from GraphQL schemas and operations, streamlining development across your tech stack.
- End-to-end type safety
- Customizable
- Rich plugins ecosystem
Generate Type-Safe GraphQL Client and Server Code
Codegen enhances your GraphQL development with fully typed client and server code, generating robust, error-resistant solutions in seconds
No more mistakes
Codegen ensures your resolvers and client code are compliant with your GraphQL Schema.
Easy customization
Tailor the output that you need with community plugins or write your own plugins to generate custom outputs matching your needs.
Your chance to fully use GraphQL.
Codegen enhances your GraphQL development with fully typed client and server code, generating robust, error-resistant solutions in seconds
Typed Queries, Mutations, and Subscriptions
Automate the creation of typed queries, mutations, and subscriptions for frameworks like React, Vue, Angular, and more.
Typed GraphQL resolvers
Generate typed GraphQL resolvers for any Node.js or Java GraphQL server, ensuring compatibility and efficiency.
Fully-typed Node.js SDKs
Produce fully-typed Node.js SDKs, enhancing development with reliable, strongly typed software components.
Explore Plugins & Presets
TypeScript
GraphQL Code Generator plugin for generating TypeScript typesUpdated 9.2M weekly downloadsSchema AST
GraphQL Code Generator plugin for generating a .graphql file from a given schemaUpdated 8.2M weekly downloadsTypeScript Operations
GraphQL Code Generator plugin for generating TypeScript types for GraphQL queries, mutations, subscriptions and fragmentsUpdated 8.2M weekly downloadsAdd
GraphQL Code Generator plugin for adding custom content to your output fileUpdated 7.9M weekly downloadsTypedDocumentNode
GraphQL Code Generator plugin for generating ready-to-use TypedDocumentNode based on GraphQL operationsUpdated 6.4M weekly downloadsClient preset
GraphQL Code Generator preset for client.Updated 6.1M weekly downloadsTypeScript React Apollo
GraphQL Code Generator plugin for generating a ready-to-use React Components/HOC/Hooks based on GraphQL operationsUpdated 1.7M weekly downloadsIntrospection
GraphQL Code Generator plugin for generating an introspection JSON file for a GraphQLSchemaUpdated 1.7M weekly downloadsTypeScript Resolvers
GraphQL Code Generator plugin for generating TypeScript types for resolvers signatureUpdated 1.6M weekly downloadsNear Operation File Preset
GraphQL Code Generator preset for generating operation code near the operation fileUpdated 1.2M weekly downloads
Discover the complete ecosystem of tools and libraries
Complete GraphQL Federation Stack
Our libraries to support all your GraphQL needs
Explore the Ecosystem