Skip to content

Latest commit

 

History

History
19 lines (16 loc) · 555 Bytes

README.md

File metadata and controls

19 lines (16 loc) · 555 Bytes

GraphQL Importer

Import JSON data via a GraphQL endpoint. Read the tutorial.

Setup

$ git clone https://github.com/thedgbrt/graphql-importer.git
$ cd graphql-importer
$ npm install

Usage

  • add desired data in import.json
  • define your GraphQL mutations in importScript.js
  • replace <YOUR-GRAPHQL-ENDPOINT> in importScript.js
  • run npm run import.

Usage with Reindex

Change mutations in importScriptReindex.js, run with npm run import-reindex.