GraphQL Code Generation Workflow

A typical workflow starts with a GraphQL schema, followed by GraphQL documents containing queries, mutations, and fragments. A code generation tool reads these sources and produces TypeScript types or client-specific helpers.

The generated output should generally be treated as build artifacts rather than manually edited source code. When the schema or operations change, the generation step should run again.