Skip to content

Latest commit

 

History

History
 
 

using-management-sdk

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Working with the GraphCMS Management SDK

Join our Slack

This example demonstrates how to programmatically build a project schema using the GraphCMS Management SDK.

It creates the following models and field types:

Blog Post

  • Title
  • Excerpt (with multi line form renderer)
  • Content as Rich Text
  • Author (Linked to Author)

Author

  • Name
  • Posts (one to many)

How to Use

Download Manually

npx degit graphcms/graphcms-examples/using-management-sdk using-management-sdk

Add .env:

cp .env.sample .env

Provide values for GRAPHCMS_MIGRATION_TOKEN and GRAPHCMS_ENDPOINT.

Install & Run:

cd using-management-sdk
npm install
npm run start
# or
cd using-management-sdk
yarn
yarn start