HomeAbout

Codegen

What is it

Frontend app doesn't know anything about the schema that backend GraphQL API is using.

You can create type definitions for the GraphQL schema, but if the schema changes in the future, you have to remember to update our frontend as well; this means that our frontend's TypeScript types can easily get out of sync.

Installation

yarn add graphql yarn add --dev typescript @graphql-codegen/cli
AboutContact