Hygraph 管理 SDK 用于模式迁移自动化
A source-backed ASE skill for the Hygraph Management SDK, the JavaScript package for managing Hygraph project schema through code-first migrations. It is a good fit for agent workflows that need repeatable content-model changes, environment-aware schema updates, and dry-run migration previews.
Prerequisites
Node.js, a Hygraph auth token, and a Hygraph environment endpoint
Installation
Use the upstream install or setup path that matches your environment:
- npm install @hygraph/management-sdk --save-dev
- To update the Management API schema this SDK depends on you must run npm run generate.
Requirements and caveats from upstream:
- const { newMigration, FieldType } = require("@hygraph/management-sdk");
- const { newMigration } = require("@hygraph/management-sdk");
- const { FieldType } = require("@hygraph/management-sdk");
Basic usage or getting-started notes:
js
const migration = newMigration({ endpoint: "...", authToken: "..." });
const author = migration.createModel({
Source: https://github.com/1991513ccie-png/skills
Extracted from upstream docs: https://raw.githubusercontent.com/hygraph/management-sdk/HEAD/README.md
Documentation
- https://hygraph.com/docs/api-reference/developer-tools/management-sdk




