Create Schemas for Products

Learn how to create schema models of products for our e-commerce application.

In Hygraph, schemas are composed of as many models as we create. Inside the schema editor, we can add fields, create relationships between models, and more.

Types of fields

In Hygraph, unlike any other headless CMS, we don't need any technical experience or code editor to create fields. Hygraph has the various fields we need for any project. All we have to do is scan through the "Add fields" portion of the schema page and click on them.

These fields are categorized into about 17 sections; let’s only look at the ones we need for our e-commerce application.

  • Single line text: This is used for headings and titles. Just as the name suggests, a single-line text will only provide us with a single-line field to enter our content. We can use this for the name of each product and category.

  • Multi line text: This is used when we need more than one line ...