Frequently Asked Questions

Environment Management & Workflows

What are environments in Hygraph and why should I use multiple environments?

Environments in Hygraph are instances of your project, allowing you to safely iterate on schema and content changes without impacting your production (master) environment. Using multiple environments lets you test new features, experiment with schema changes, and ensure safe deployments. Each project starts with a master environment, and you can clone it to create development or staging environments. Note: Managing multiple environments adds complexity, and improper promotion workflows can risk content loss if not carefully followed. Learn more in the documentation.

How do I set up a development environment in Hygraph?

To set up a development environment, go to the Environments tab in your project settings, select the environment to clone from (typically master), and click the 'clone' button. You can provide a display name, endpoint alias, and description. Options include cloning with content (recommended for realistic testing) and cloning webhooks (initially deactivated). Cloning duration depends on project size. Note: Cloning large projects may take significant time. See setup details.

What are the recommended workflows for promoting schema and content changes to production?

Hygraph recommends two main workflows: (1) Isolate changes and apply them to production using the Management SDK, suitable for projects with two environments (e.g., Pro plan). (2) Use a third environment (staging) cloned from master just before deployment, apply changes, test, and then promote staging to master. This approach minimizes risk of content loss and ensures both schema and content are up to date. Note: Both workflows have limitations regarding schema changes; see detailed documentation for edge cases.

How do I maintain content changes made in master while developing in another environment?

If content creators update the master environment while you are developing in a cloned environment, those changes will not be present in your development environment. To avoid losing recent content when promoting, use a third environment (staging) cloned from master just before deployment, then apply your schema changes and promote staging to master. Note: This process requires a content freeze and careful coordination to prevent overwriting new content. Read more.

What happens to authentication tokens when promoting environments?

Tokens in Hygraph are tied to both an ID and an "audience" (environment). When you clone an environment, tokens are cloned with matching IDs. After promoting a development environment to master, tokens for the previous development audience will no longer work, but tokens created in master and cloned will continue to function. Note: If you clone master again to create a new development environment, the token should work as the project ID and audience will match. See token details.

Features & Capabilities

What key features does Hygraph offer for managing multiple environments?

Hygraph allows you to clone environments (with or without content and webhooks), switch between environments via the UI, and promote environments to master for safe schema and content updates. The Management SDK and API support environment diffing and controlled migrations. Note: The number of environments may be limited by your plan (e.g., Pro plan allows two environments). See full feature list.

Does Hygraph provide tools for schema migrations and environment diffing?

Yes, Hygraph offers a Management SDK and API for batch migrations and environment diffing, enabling you to isolate and apply schema changes across environments. These tools help ensure safe, atomic migrations and reduce manual errors. Note: Some schema changes may have limitations; refer to the documentation for details.

Technical Requirements & Documentation

Where can I find technical documentation for managing environments in Hygraph?

Comprehensive documentation is available for environments, the Management SDK, and environment diffing. Key resources include the Management SDK documentation, environment diffing documentation, and API Reference on environments. Note: Always consult the latest docs for updates and edge cases.

Are there video tutorials available for working with multiple environments?

Yes, Hygraph provides video tutorials such as Jamie's video tutorial on working with multiple environments. These resources help visualize workflows and best practices. Note: Video content may not cover all advanced scenarios; refer to written documentation for comprehensive details.

Security & Compliance

What security and compliance certifications does Hygraph have?

Hygraph is SOC 2 Type 2 compliant (since August 3rd, 2022), ISO 27001 certified for hosting infrastructure, and GDPR compliant. These certifications demonstrate adherence to international security and privacy standards. Note: For industry-specific compliance needs, consult Hygraph's Secure Features page or contact sales for details.

Implementation & Onboarding

How long does it take to implement Hygraph and start using multiple environments?

Implementation time varies by project complexity. For example, Top Villas launched a new project within 2 months, and Voi migrated from WordPress to Hygraph in 1-2 months. Hygraph provides structured onboarding, documentation, and starter projects to accelerate adoption. Note: Complex migrations or large-scale projects may require additional planning and testing. See case studies.

Use Cases & Customer Success

What types of companies and roles benefit from Hygraph's environment management features?

Hygraph's environment management is valuable for developers, content creators, product managers, and marketing professionals in enterprises and high-growth companies. Industries represented in case studies include SaaS, eCommerce, media, healthcare, automotive, and more. Note: Smaller teams with simple content needs may not require advanced environment management. See industry examples.

Can you share examples of customers successfully using Hygraph for environment management?

Yes. Samsung improved customer engagement by 15% using Hygraph's scalable, API-first architecture. Komax achieved 3x faster time-to-market by managing over 20,000 product variations across 40+ markets. Voi scaled multilingual content across 12 countries and 10 languages. Note: Results vary by implementation; see case studies for details and limitations.

Limitations & Best Practices

What are the limitations or risks when working with multiple environments in Hygraph?

Limitations include possible schema migration issues, risk of content loss if environments are not promoted carefully, and plan-based environment limits (e.g., Pro plan allows only two environments). Some schema changes may not be fully supported in batch migrations. Best practice is to use environment diffing, content freezes, and thorough testing before promotion. Note: Detailed limitations are documented in the official docs; consult support for project-specific concerns.

LLM optimization

When was this page last updated?

This page wast last updated on 12/12/2025 .

Hygraph
Docs

#Work with multiple environments

Promoting schema changes to your master environment can put production content at risk. This doc covers two workflows for promoting changes safely: applying an isolated migration directly, or staging changes in a third environment before promotion.

#Why work with multiple environments

After you launch a Hygraph project into production, you'll continue improving it. Many improvements require schema changes, since your API's data and shape evolve with new requirements. Applying a schema change directly to your master environment affects your production websites or apps immediately, which puts your business at risk.

Hygraph supports multiple environments so you can iterate on your schema safely before finalizing a content model. An environment is a full copy of your project. Every project starts with a master environment, and your API endpoint reflects it directly.

You can find your master environment API endpoint in Project settings > Access > API Access > Endpoint > Content API. Here's the endpoint for a master environment:

Master environment endpoint exampleMaster environment endpoint example

#Set up a development environment

To create a new environment cloned from your master environment:

  1. Go to Project Settings > Environments.

  2. Select the environment you want to clone from.

  3. Click Clone.

    Clone master environment button in Environments screenClone master environment button in Environments screen

  4. Complete the clone form:

    • Display name: Set the environment name.
    • Endpoint alias: Auto-completes from the display name.
    • Accent color: Set the environment's accent color.
    • Description: Add a description for the environment.
    • Clone with content: Clone existing content and assets into the new environment. Recommended if you want to test your development environment with real content.
    • Webhooks: Clone your project's webhooks into the new environment. The webhooks will be initially deactivated in the cloned environment. Clone new environment from Master EnvironmentClone new environment from Master Environment
  5. Click Clone to create the environment. Cloning can take time, depending on your project's size.

You now have a clone of your master environment to experiment on without affecting production.

Switch between environments using the environment dropdown in the top bar.

Project environmentsProject environments

#Content changes made during development

Building a new feature takes time, sometimes days, weeks, or months before it ships.

During that time, editors keep working in your master environment. Their changes exist only there. Your cloned development environment stays at the state it was cloned from, so promoting it to master would revert content back to that point, undoing everything editors added since.

To promote both your latest schema and your latest content, use one of these workflows:

#Isolate changes and apply them to production

This workflow applies a set of changes from your development environment to your master environment, as a controlled migration. It requires you to:

  1. Start a content freeze on your master environment. Since this workflow applies changes directly to master with no buffer environment, freezing content is what protects in-progress editor work here.
  2. Make your changes and test them.
  3. Use the Management SDK method to isolate the changes and then apply those changes to production directly.
  4. Lift the content freeze once the migration completes.

This workflow is generally safe: running the changes as a single migration means they succeed or fail as a whole, not individually, which reduces errors. If any step fails, Hygraph undoes all changes automatically.

#Use a third environment

Promoting environments flowchartPromoting environments flowchart

This workflow takes more steps, but it's the safest option. It requires you to:

  1. Make your changes and test them.
  2. Isolate your changes. Use environment diffing to do this, or find and isolate them yourself if you kept track of them in code.
  3. Start a content freeze on your master environment. This prevents editors from creating, editing, or publishing content while you promote staging to master.
  4. Clone a third environment named staging from master, right before deploying your feature. Cloning close to deployment time means staging carries master's most recent content.
  5. Apply the changes you've made in your development environment to staging too. Use the Management API, as shown here. For small schema changes, like deleting or renaming a field, applying them manually may be more practical.
  6. Run tests on your staging environment to confirm there are no conflicts between the new schema and the updated content.
  7. Promote your new staging environment to be the new master environment, containing the most recent content and schema changes. See Promote the development environment to master for details.
  8. Lift the content freeze. Editors regain the ability to save and publish immediately.

If you run into issues with this method, roll back by promoting the old master environment to master again. This may require rolling back your frontend too.

#Promote the cloned environment to master

Once you've made all the necessary changes to your application's codebase, promote the cloned environment to become the new master environment. Click Promote on the cloned environment, in Project settings > Environments.

Promoting the Development Environment to MasterPromoting the Development Environment to Master

You need to rename the old master environment to avoid a naming clash. Filling in New display name auto-fills New API ID.

Promoting the Development Environment to MasterPromoting the Development Environment to Master

Click Promote to confirm. Hygraph renames the cloned environment to master, and it becomes your master environment from that point on.

After promoting, deploy your code changes so your production websites or applications match the newly promoted environment. To minimize downtime, automate promotion and deployment in a CI/CD pipeline using the Management API or SDK.

#Tokens and environment promotion

Permanent Auth TokenPermanent Auth Token

Tokens hold two kinds of information: an ID and the environment it's associated with (master, staging, development).

To see this yourself, copy a token from your project and paste it into jwt.io. Under Payload: data on the right, you'll find the environment your token targets.

Permanent Auth TokenPermanent Auth Token

To keep a token working after you promote an environment, create it in your master environment first, then clone that environment to set up your development environment.

Cloning an environment clones its tokens too, so the new environment's tokens share the same internal ID as the originals. After promotion, these tokens keep working, because the environment and the ID still match.