This example demonstrates how to query from GraphCMS with Apollo Client 3, TypeScript, and generated types for your GraphCMS project with GraphQL Code Generator.
• Demo
npx degit graphcms/graphcms-examples/with-graphql-codegen with-graphql-codegen
Install & Run:
cd with-graphql-codegen
npm install
npm run dev
# or
cd with-graphql-codegen
yarn
yarn dev