Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 829 Bytes

File metadata and controls

35 lines (24 loc) · 829 Bytes

Working with the Remote Fields

Join our Slack

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.

How to Use

Download Manually

npx degit hygraph/hygraph-examples/using-remote-fields using-remote-fields

Add .env:

cp .env.sample .env

Provide 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