This example demonstrates how to programmatically build a project schema using the Hygraph Management SDK.
Using Remote Fields, we create a PricingPlan model to query for product/price data directly from the Stripe API.
npx degit hygraph/hygraph-examples/using-remote-fields using-remote-fieldsAdd .env:
cp .env.sample .envProvide values for HYGRAPH_MIGRATION_TOKEN, HYGRAPH_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