The Guild LogoThe Guild Monogram
Docs

GraphQL Code Generator

Generate anything from GraphQL schema / operations!

Contact Us

Apollo Federation#

The typescript-resolvers plugin also supports Apollo Federation.

To use it, add federation: true to your configuration:

generates: ./src/types.ts: plugins: - typescript - typescript-resolvers config: federation: true

It will add the required GraphQL directives to your codegen schema and generate a compatible resolvers signature for Apollo Federation.