Automatically generate code for Apollo Client 3 hooks with GraphQL Code Generator using operations stored inside of your codebase.
overwrite: true
schema: ${NEXT_PUBLIC_GRAPQL_ENDPOINT}
documents: "**/*.{gql,graphql}"
generates:
./graphql/generated/schema.ts:
plugins:
- "typescript"
- "typescript-operations"
- "typescript-react-apollo"
Published on 14 Feb 2022 by Jamie Barton