This example demonstrates how to programmatically build a project schema using the GraphCMS Management SDK.
Using Remote Fields, we create a PricingPlan
model to query for product/price data directly from the Stripe API.
npx degit graphcms/graphcms-examples/using-remote-fields using-remote-fields
Add .env:
cp .env.sample .env
Provide values for GRAPHCMS_MIGRATION_TOKEN
, GRAPHCMS_ENDPOINT
and STRIPE_SECRET_KEY
keys.
Install & Run:
cd using-remote-fields
npm install
npm run start
# or
cd using-remote-fields
yarn
yarn start