0.1.10 • Published 2 years ago

@graphcms-tools/importer v0.1.10

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Importer

This package is part of a collection of tools to work more effectively with data using GraphCMS.

Usage

The importData function supports both CommonJS and ESM modules, and takes three objects as arguments:

  1. Data Required

See the output of the exporter package for reference.

  1. Environment Required

P.s. environment variables should never be committed.

propertytypewhere?
projectIdstringGraphCMS Settings > General > Project
permanentAccessTokenstringGraphCMS Settings > General > API Access
contentApistringGraphCMS Settings > General > API Access
  1. Options

propertysub-propertytypedefault
concurrencynumber1Controls how many requests to run in each batch
excludeobject
modelControls excluding content models by name
fieldControls excluding fields by name

See also

Exporter

Export data as JSON in bulk, with controls to filter the output

Publisher

Publish JSON data in bulk, with controls to filter the input