Get the latest insights, best practices, and tips from power users

Hygraph
Docs

Creating content

#How to create an entry

Creating content with required fieldsCreating content with required fields

  1. Navigate to the content tab in the left-hand sidebar.
  2. Choose a content model from the collapsible sidebar.
  3. Press "+ Add entry" in the upper-right corner of the page.
  4. Fill out the information required by your content model.
  5. Press "Save" in the sidebar to save your content onto the DRAFT stage or press Save and Publish to save your content onto both the DRAFT and PUBLISHED stages, respectively.

Save and Publish contentSave and Publish content

Hygraph allows the set-up of additional content stages (e.g. a QA and/or ARCHIVED stage) depending on your plan.

The following diagram shows a simplified workflow including 3 content stages - DRAFT, APPROVAL and PUBLISHED - as well as two roles: Editor & Editor Supervisor.

Hygraph workflow with 2 rolesHygraph workflow with 2 roles

For content models that have references, you can either connect an existing entry, or create and connect a new one.

#Relate existing content

  • A popup listing all the possible entries of that model will appear.
  • Press the link icon at the far left of the content entry.

#Relate new content

  • An in-line content editor window for the selected type will appear.
  • Fill out for the form's fields.
  • Choose to "save" or "save and publish" to create a DRAFT or DRAFT and PUBLISHED entry in the related model. Connecting will happen automatically.

#Connecting different types of content

If the relation field you're connecting content to is a union type then you can connect to different content type entries.

Add a union type content entry relationAdd a union type content entry relation

Click to add a new or existing entry and select from the list the type of content you want to connect.