Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 860 Bytes

README.md

File metadata and controls

23 lines (16 loc) · 860 Bytes

Catalyst + Contentful

This example integration features gql.tada multi-schema mode to allow for seamless typesafe GraphQL API calls to the Contentful GraphQL API.

Getting Started

  1. Clone repository and install dependencies
git clone git@github.com:bigcommerce-labs/catalyst-contentful.git && cd catalyst-contentful && pnpm i
  1. Copy environment variable template and enter values for each variable
cp .env.example .env.local
  1. 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}"