Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 813 Bytes

File metadata and controls

35 lines (24 loc) · 813 Bytes

Working with the Asset Upload endpoint

Join our Slack

This example demonstrates how to programmatically import assets from a URL using the Asset Upload endpoint. Uses Bee-Queue to process jobs (recommended for large data imports).

Included is an example JSON file (assets.json).

How to Use

Download Manually

npx degit hygraph/hygraph-examples/using-asset-upload using-asset-upload

Add .env:

cp .env.sample .env

Provide values for HYGRAPH_TOKEN and HYGRAPH_ENDPOINT keys.

Install & Run:

cd using-asset-upload
npm install
npm run start assets.json
# or
cd using-asset-upload
yarn
yarn start assets.json