Hygraph
Docs
View as Markdown

#Schema

Your schema is defined by the models you create and the fields you add to them. Hygraph generates the GraphQL Content API from your schema, and all changes to your schema are immediately available through GraphQL.

This section describes how each part of your schema appears in the API. To set up these schema elements in the Schema builder, see the Schema section of the Developer guides.

#Models and fields

ReferenceWhat it covers
ModelsHow models define your schema, and how they are exposed in the API.
System fieldsThe fields Hygraph manages on every model, such as when an entry was last updated or published.
Field typesThe GraphQL types behind each field type, with example queries and responses.
Field configurationSettings, validations, and advanced options for fields, with the matching Management SDK parameters.
Reserved termsTerms you cannot use as names in your schema.

#Schema elements

ReferenceWhat it covers
ComponentsQuery basic and modular components.
EnumerationsFetch enumeration values.
TaxonomiesFetch a taxonomy and its nodes.
VariantsFetch Variants and the Segments they are linked to.

#Manage your schema with the Management API

ReferenceWhat it covers
Environment diffingCompare the schemas of two environments in a project, and apply the changes.
Schema as codeGenerate code for your existing project schema, and import it into another project or save it in version control.