0.1.10 • Published 2 years ago

@graphcms-tools/exporter v0.1.10

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

Exporter

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

Usage

The exportData function supports both CommonJS and ESM modules, and takes two objects as arguments:

  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
targetobject
contentStagestring'DRAFT'Controls which content stage to import content from
localesstring[]Controls which locales to export from
includeobject
includeSystemModelsbooleantrueControls filtering system models
includeSystemFieldsbooleantrueControls filtering system fields
includeHiddenFieldsbooleantrueControls filtering hidden fields
includeApiOnlyFieldsbooleantrueControls filtering fields marked as api-only
excludeobject
modelControls excluding content models by name
fieldControls excluding fields by name
typeControls excluding fields by type
subTypeControls excluding fields by sub-type

See also

Importer

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

Publisher

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

0.1.0

2 years ago

0.1.10

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.8

2 years ago

0.1.9

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.0.9

2 years ago