@graphcms-tools/importer
TypeScript icon, indicating that this package has built-in type declarations

0.1.10 • Public • Published

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.

property type where?
projectId string GraphCMS Settings > General > Project
permanentAccessToken string GraphCMS Settings > General > API Access
contentApi string GraphCMS Settings > General > API Access
  1. Options

property sub-property type default
concurrency number 1 Controls how many requests to run in each batch
exclude object
model Controls excluding content models by name
field Controls 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

Package Sidebar

Install

npm i @graphcms-tools/importer

Weekly Downloads

1

Version

0.1.10

License

MIT

Unpacked Size

72.4 kB

Total Files

42

Last publish

Collaborators

  • viktorjt