Easily restore your project to a previous version with our new Instant One-click Backup Recovery
Hygraph
Docs

Content stages

#Overview

Hygraph offers two system content stages (DRAFT & PUBLISHED) plus the possibility to create custom ones depending on your plan.

This document discusses what these stages mean and how you can use them to create workflows.

#What you can do

  • You can save content in the DRAFT stage while you work on it, before it's ready to be PUBLISHED.
  • You can use content staging to compare versions of content in different stages.
  • In case of an error, you can quickly revert changes to the DRAFT stage from the PUBLISHED stage, then use version comparison to compare the two and choose which fields to revert to the PUBLISHED stage.

#System content stages

Hygraph has two system content stages, DRAFT and PUBLISHED.

DRAFT allows people to add and edit content without affecting published content. When the content is ready to be pushed live, it is promoted to the PUBLISHED stage.

System content stagesSystem content stages

Content in Hygraph that has been saved but has never been published exists only in the DRAFT stage. When promoted to the PUBLISHED stage, content will exist in that stage, and also in DRAFT.

When you update a content entry and save without publishing, that new content will be saved in DRAFT and the entry will show a blue PUBLISHED pill on the content table, indicating that it's outdated.

Content being outdated means that the version currently saved in the DRAFT stage contains changes that have not yet been promoted to PUBLISHED.

#Custom content stages

Depending on your plan, you may only have access to the two system content stages that we described above, or you may have the possibility to create more.

Paid plans allow creating custom content stages, which you can use to create more sophisticated workflows.

For instance, the following diagram shows a workflow with 3 content stages: DRAFT, APPROVAL and PUBLISHED.

Hygraph workflow with 3 content stagesHygraph workflow with 3 content stages