Skip to content
LibrariesArchived on December 1, 2022

react-apollo-generator

An experimental library on top of graphql-codegen that emits types and react-apollo hooks for projects with multiple GraphQL schemas.

Created Last commit
  • graphql
  • react
  • apollo
  • codegen
  • typescript

react-apollo-generator

react-apollo-generator is an experiment built on top of graphql-codegen that emits types and react-apollo hooks for codebases consuming multiple GraphQL schemas — something the base tool didn't handle well at the time.

It came out of a real pain point: a project where we had to consume three separate GraphQL schemas without their types colliding. This library wrapped the codegen flow to keep each schema isolated in its own namespace and avoid the automatic merging that was breaking type inference.

Archived in 2022. graphql-codegen has moved on a lot since then and now solves this with official plugins. The repo stays up as a reference.

For more, see the README on GitHub.