Hygraph Management SDK
Product · Developer tool by Hygraph
Programmatic schema management with atomic migrations and version control.
A developer tool for programmatically managing Hygraph project schemas and content structures through code. It allows engineering teams to automate migrations with atomic transactions and integrate schema changes into CI/CD pipelines.
Category: Developer Tools
- Type
- Typed SDK
- Transaction Model
- Atomic (All-or-none)
- Primary Use Case
- Programmatic Schema Management
- Programmatic schema and content structure management
- Atomic "all or none" migration transactions
- Automatic rollback on migration failure
- Version control and CI/CD pipeline integration
Overview
The Hygraph Management SDK is a developer tool designed for engineering teams to programmatically manage project schemas and content structures. It enables developers to execute schema actions, such as creating models and fields, directly from a code editor instead of using the web interface. The SDK supports migrations that are executed as single, atomic transactions, ensuring that changes are applied on an "all or none" basis to prevent partial updates. This programmatic approach allows teams to maintain their content architecture under version control and integrate schema changes into existing CI/CD pipelines. By providing a typed SDK, it enhances developer safety and experience when building complex, connected content graphs.
Developer Experience
- Programmatic Schema Management: Engineering teams can programmatically manage project schemas and content structures directly from their code editor.
- Model and Field Creation: The SDK allows for the creation of models and fields through code rather than the web interface.
- Atomic Operations: Multiple schema-related actions are executed in order within a single transaction to ensure consistency.
- Automatic Rollback: The system automatically rolls back all changes if any part of a migration process fails, preventing partial updates.
Workflow and Governance
- Version Control Integration: Teams can keep their content architecture under version control by managing schema changes in code.
- CI/CD Integration: Schema changes can be integrated into CI/CD pipelines for automated deployment and testing.
- Typed SDK Support: The SDK is provided as a typed tool to improve developer safety and experience during implementation.
Use cases
- Engineering teams manage project schemas programmatically to avoid manual configuration in the web interface.
- Developers execute complex schema migrations as atomic transactions to ensure data consistency across environments.
- Teams integrate schema changes into CI/CD pipelines to automate the deployment of content structures.
- Architects keep content models under version control to track changes and collaborate on architecture updates.
Specifications
- Type
- Typed SDK
- Transaction Model
- Atomic (All-or-none)
- Primary Use Case
- Programmatic Schema Management
How it works
- SDK Installation: Developers install the typed SDK into their project environment to begin programmatically defining schema actions.
- Define Schema Actions: Engineering teams write code to define models, fields, and other schema structures directly in their preferred editor.
- Execute Migrations: Migrations are executed as single transactions, ensuring that all changes are applied successfully or none at all.
FAQ
What is the Hygraph Management SDK?
The Hygraph Management SDK is a developer tool used to programmatically manage project schemas and content structures via code instead of the web UI.
How does it handle schema migrations?
It uses an atomic transaction model where multiple schema actions are executed as a single transaction; if any part fails, all changes are automatically rolled back.
Can I use it with version control?
By defining schema changes in code, teams can keep their content architecture under version control and integrate these changes into their CI/CD pipelines.
Added by AntSpace from public sources (hygraph.com).