This example demonstrates how to query from Hygraph with Apollo Client 3, TypeScript, and generated types for your Hygraph project with GraphQL Code Generator.
• Demo
npx degit hygraph/hygraph-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