Hygraph
Docs
View as Markdown

#Build your Hygraph project

Use these guides to configure your project, model your schema, manage content and assets, connect your frontend, bring in external data, and automate workflows.

New to Hygraph? Start with Get started, or follow the full tutorial to build your first project.

YouTube video player - YouTube thumbnail

Playing this video loads it from YouTube, which may store data in your browser.

#Common tasks

TaskStart here
Set up your projectManage environments, locales, and content stages.
Model your schemaCreate models, choose field types, and reuse structure with components and references. For the concepts, see Content modeling in Hygraph.
Connect your frontendLet editors review and change content from your frontend with visual editing, including live preview and Click to Edit.
Bring in external dataSource data from third-party web services with Remote Sources and remote fields.
AutomateConfigure webhooks, for example to deploy your Vercel or Gatsby project.

#Section contents

#Project administration

DocumentContents
Set up and maintain your projectConfigure and maintain your project, from project details and environments to governance, monitoring, and recovery.
Manage project informationEdit your project details, clone or share your project, manage support access, leave the project, or delete it.
Clone your projectClone your project, and review the limitations of cloning.
Manage billing and plansManage your project billing details, subscription plans, and commercial limits.
Manage environmentsCreate, switch, and delete environments, and promote an environment to master.
Work with multiple environmentsSet up a development environment, keep changes made during development, and promote an environment to master.
Usage dashboardMonitor your project's API calls, asset bandwidth, and operational limits from the Usage dashboard.
Configure content stagesUnderstand how system content stages work, and configure custom content stages.
Manage localesManage your project's locales.
Lab featuresEnable or disable experimental features, and choose which roles can access them.
Audit logsSee all changes inside your project, including the event fields, logged resources, and logged actions, and filter the logs.
Backup & recoveryRoll back your main environment to a previous working version after unintentional deletions.
WorkflowsSet up workflows to manage content creation and approval in a clear and structured way.
Content freezePause content creating, editing, and publishing while you promote schema changes, so editors' work is never caught mid-change.

#Schema

DocumentContents
Build your schemaBuild your schema from models, fields, components, references, remote sources, enumerations, taxonomies, and variants.
ModelsCreate, edit, and delete models in the Schema builder, and add the fields that define your content structure.
Field typesChoose the right field type for your content, and add it to a model in the Schema builder.
Field configurationConfigure fields with settings, validations, visibility options, and more.
Conditional fieldsConfigure conditional visibility for the fields in your schema.
Reserved termsCheck the list of reserved terms that you cannot use in your schema.
SlugConfigure a slug field to generate its value from other field values in your model.
ComponentsCreate components, reusable sets of fields, add them to models, use them in content entries, and nest them.
ReferencesConfigure reference fields, and choose between the different types available.
Components or referencesDecide whether to use a component or a reference in your schema.
Remote sourcesAdd content from other systems and sources to the Hygraph API with Remote Sources, without migrating it.
Configure Remote SourcesConfigure Remote Sources to add content from other systems to the Hygraph API without migrating it.
Remote fields vs top-level remote fieldsChoose between remote fields and top-level remote fields to fetch data from a remote source.
Add remote data to your modelAdd remote fields to a model, or use top-level remote fields to fetch data unrelated to Hygraph.
Remote data troubleshootingTroubleshoot remote data errors and known issues, and refetch your data.
Remote data examplesSee examples of working with Remote Sources, remote fields, and top-level remote fields.
EnumerationsCreate, add, use, and delete enumerations to group values within a type.
TaxonomiesCreate, add, use, and delete taxonomies to define hierarchical structures for content classification.
Best practices for taxonomiesFollow best practices for setting up taxonomies in Hygraph.
VariantsWork with Variants to personalize your content.
Import schema elementsReuse and import schema elements across Hygraph projects.

#Visual editing

DocumentContents
Set up visual editingLet editors review and change content directly from your frontend with live preview and Click to Edit.
Set up live previewSet up live preview to preview content in your frontend before it's published.
Live preview setup: Frontend implementationConfigure your React, Next.js, Remix, Vue, Nuxt, Astro, or vanilla JavaScript frontend to serve DRAFT content for live preview.
Click to Edit setupInstall the Hygraph Preview SDK and configure Click to Edit, so editors can jump from any preview element to the corresponding field in Studio.
Click to Edit setup: Next.js App RouterSet up Click to Edit with the Hygraph Preview SDK in a Next.js App Router project.
Click to Edit setup: Next.js Pages RouterSet up Click to Edit with the Hygraph Preview SDK in a Next.js Pages Router project.
Click to Edit setup: RemixSet up Click to Edit with the Hygraph Preview SDK in a Remix project.
Click to Edit setup: Vue / NuxtSet up Click to Edit with the Hygraph Preview SDK in a Vue or Nuxt project.
Click to Edit setup: Vanilla JavaScriptSet up Click to Edit with the Hygraph Preview SDK in a vanilla JavaScript project.
Click to Edit: Advanced APIUse advanced Preview SDK APIs for Click to Edit, including React hooks, Preview methods, DOM events, and helpers for dynamic content.

#Content

DocumentContents
Manage content in StudioFind, create, edit, publish, version, and localize content in the content editor.
Access contentAccess the content you created.
Configure columnsConfigure columns to declutter your content views by hiding information that is not relevant to you.
Search for contentSearch for content in your project.
Use filtersUse filters to restrict the content shown by specific parameters.
Content viewsUpdate default content views, create and organize custom views, and manage view groups.
Create contentCreate content and connect related content.
Update contentUpdate content and sort related content.
Delete contentDelete content and remove related content.
Duplicate contentDuplicate content and relations.
Copy an entry to another projectCopy a saved content entry into a different Hygraph project you belong to, matching fields and locales into a model there.
Publish contentPublish content, and work with outdated and published content.
Use content stagesWork with Hygraph's default content stages, and create custom workflows using content stages.
Version contentView the evolution of your project's published content with content versioning.
Localize contentAdd translations, and show or hide translated fields.
Scheduled publishingSchedule content to be published or unpublished, create releases, and review scheduling limitations.
Rich text editorCreate, edit, and manipulate text and images in content entries with the Rich Text editor.
Use references in content entriesAdd and manage reference fields in the content editor to link content entries.

#Assets

DocumentContents
Work with assetsSort, filter, and edit assets in the assets manager, and perform single or bulk actions.
Add an asset entryAdd asset entries to attach metadata to your assets.
Upload assetsUpload assets step by step.

#Webhooks

DocumentContents
Automate with webhooksConfigure, edit, enable, disable, and delete webhooks, and view webhook logs.
Trigger builds with webhooksDeploy your Vercel project using webhooks.
Deploy your Gatsby projectDeploy your Gatsby project using webhooks.
  • API Reference: The Content API, the Management API, and how your schema appears in GraphQL.
  • Management SDK: Manage your project configuration, including your schema, as code.
  • Code examples: Our most recently updated code examples.
  • Tutorials: Step-by-step tutorials on the Hygraph blog.