This example integration features
gql.tada
multi-schema mode to allow for seamless typesafe GraphQL API calls to the Contentful GraphQL API.
- Clone repository and install dependencies
git clone [email protected]:bigcommerce-labs/catalyst-contentful.git && cd catalyst-contentful && pnpm i
- Copy environment variable template and enter values for each variable
cp .env.example .env.local
- Fetch the Contentful GraphQL schema using
gql.tada
CLI
source .env.local
pnpm exec gql.tada generate-schema "https://graphql.contentful.com/content/v1/spaces/${CONTENTFUL_SPACE_ID}" -o ./contentful.graphql --header "Authorization: Bearer ${CONTENTFUL_ACCESS_TOKEN}"