Import JSON data via a GraphQL endpoint. Read the tutorial.
$ git clone https://github.com/thedgbrt/graphql-importer.git
$ cd graphql-importer
$ npm install
- add desired data in import.json
- define your GraphQL mutations in importScript.js
- replace
<YOUR-GRAPHQL-ENDPOINT>in importScript.js - run
npm run import.
Change mutations in importScriptReindex.js, run with npm run import-reindex.