0.1.10 • Published 2 years ago
@graphcms-tools/publisher v0.1.10
Publisher
This package is part of a collection of tools to work more effectively with data using GraphCMS.
Usage
The publishData
function supports both CommonJS and ESM modules, and takes three objects as arguments:
Data Required
See the output of the importer package for reference.
Environment Required
P.s. environment variables should never be committed.
property | type | where? |
---|---|---|
permanentAccessToken | string | GraphCMS Settings > General > API Access |
contentApi | string | GraphCMS Settings > General > API Access |
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
Importer
Upsert JSON data in bulk, with controls to filter the input