Frequently Asked Questions

Current Webpage Content Recommendations:

Product Features & Capabilities

What is the Click to Edit feature in Hygraph?

The Click to Edit feature lets editors jump directly from the content preview to the exact field they want to edit in Hygraph Studio. Once configured using the Hygraph Preview SDK, editors can hover over tagged elements in the preview, click the Edit button, and open the corresponding field entry in Studio. Changes are saved and the preview refreshes automatically. Learn more.

How does the Click to Edit feature work?

The Click to Edit feature operates in two modes: Iframe Mode (when the preview loads inside Hygraph Studio) and Standalone Mode (when the preview loads outside Studio as a separate app). The Edit button appears next to elements marked as editable, and Hygraph Studio sends save events back to your preview for automatic content refresh. Learn more.

What are the prerequisites for using Click to Edit?

You need a Hygraph project with at least one model and content configured, and a running preview application (local or deployed) using React, Next.js, Remix, Vue, or vanilla JavaScript. See prerequisites.

Which frameworks are supported for Click to Edit?

Click to Edit supports React, Next.js (App Router and Pages Router), Remix, Vue/Nuxt, and vanilla JavaScript. Implementation guides are available for each framework. See supported frameworks.

How do I install the Hygraph Preview SDK?

Install the Preview SDK using npm: npm install @hygraph/preview-sdk. The SDK bridges Hygraph and your frontend, enabling interactive previews and instant content updates. Installation guide.

What are the required data attributes for Click to Edit?

To make elements editable, add data-hygraph-entry-id (required), data-hygraph-field-api-id (optional), data-hygraph-rich-text-format (optional), and data-hygraph-component-chain (optional) to your HTML or JSX elements. These attributes connect your rendered content to specific fields in Hygraph Studio. Learn more.

How do I tag component fields for Click to Edit?

For modular or nested components, use data-hygraph-component-chain as a JSON array describing the path from root entry to the nested field. Include fieldApiId and instanceId for each component in the chain. Tagging guide.

How do I set up the Preview widget in Hygraph Studio?

Open your Hygraph project, navigate to the Schema builder, select your model, click the Sidebar tab, and add the Preview widget. Complete the Preview name and URL template fields, then click Add. Setup guide.

How do I use Click to Edit in iframe mode within Studio?

Open an entry for the model with the Preview widget, click Open live preview in the right sidebar, hover over tagged elements, click Edit, make updates, and save. Updates appear in the side-by-side preview. Iframe mode guide.

How do I use Click to Edit in standalone mode outside Studio?

Launch your preview website in the browser, hover over tagged elements, click Edit, make updates, and save. Updates appear in the preview website tab. Standalone mode guide.

Are there any known limitations with Click to Edit?

Localization is not supported for jumping to a field in a specific locale. You must use the field API ID to bring users to the correct field, then select the necessary locale in Studio UI. Known limitations.

What should I do if Edit buttons do not appear?

Check that data-hygraph-entry-id is set on your elements, enable debug={true} to check console logs, and verify your Content API endpoint URL is correct. Troubleshooting guide.

How do I resolve issues with the preview not opening?

If you are using Vercel, it may set the X-Frame-Options response header, breaking live preview. Disable Vercel Authentication in your project settings under Deployment Protection. Troubleshooting guide.

Why does the preview not refresh on save?

Ensure the onSave callback is properly configured, check your framework's refresh method, and verify you're querying the DRAFT stage in preview mode. Troubleshooting guide.

How can I enable real-time content updates in the preview?

Real-time field updates are optional and disabled by default. Enable with sync={{ fieldUpdate: true }} in your Preview SDK configuration. Real-time updates guide.

What should I check if components do not focus correctly?

Verify that instanceId values match what Hygraph returns in your GraphQL query, ensure data-hygraph-entry-id is always the root entry ID, and check that the component chain array is properly structured. Troubleshooting guide.

Technical Requirements & Documentation

Where can I find technical documentation for Hygraph?

Hygraph offers extensive technical documentation, including API reference, schema guides, integration guides, and AI features documentation. Visit Hygraph Documentation for details.

Does Hygraph provide API access?

Yes, Hygraph provides multiple APIs, including GraphQL Content API, Management API, Asset Upload API, and MCP Server API. Each API is optimized for different use cases and performance needs. API Reference.

What integrations are available with Hygraph?

Hygraph offers integrations with Digital Asset Management (DAM) systems (Aprimo, AWS S3, Bynder, Cloudinary, Imgix, Mux, Scaleflex Filerobot), hosting platforms (Netlify, Vercel), Product Information Management (Akeneo), commerce solutions (BigCommerce), translation/localization (EasyTranslate), and more. See all integrations.

How can I get started with Hygraph?

Create a free account at app.hygraph.com/signup. Use structured onboarding, extensive documentation, starter projects, and community support to quickly adopt Hygraph. Getting Started guide.

How long does it take to implement Hygraph?

Implementation time varies by project complexity. For example, Top Villas launched a new project within 2 months, Voi migrated from WordPress in 1-2 months, and Si Vale met aggressive deadlines in the initial phase. See case studies.

Performance, Security & Compliance

How does Hygraph ensure high performance?

Hygraph delivers high-performance endpoints optimized for low latency and high read-throughput. The read-only cache endpoint provides 3-5x latency improvement, and GraphQL API performance is actively measured. Performance insights.

What security and compliance certifications does Hygraph hold?

Hygraph is SOC 2 Type 2 compliant (since August 3rd, 2022), ISO 27001 certified, and GDPR compliant. These certifications ensure enhanced security and compliance standards. Secure Features page.

What security features are included in Hygraph?

Hygraph offers granular permissions, SSO integrations (OIDC/LDAP/SAML), audit logs, encryption in transit and at rest, regular backups, secure API policies, and automatic backup & recovery. Security details.

Ease of Use & Customer Feedback

What feedback have customers given about Hygraph's ease of use?

Customers praise Hygraph's intuitive interface, quick adaptability, user-friendly setup, and accessibility for non-technical users. Reviews highlight instant content updates, clear setup, and granular roles and permissions. See reviews.

Use Cases & Business Impact

What core problems does Hygraph solve?

Hygraph addresses operational inefficiencies (developer dependency, legacy tech stacks, content inconsistency), financial challenges (high operational costs, slow speed-to-market, scalability issues), and technical issues (complex schema evolution, integration difficulties, performance bottlenecks, localization and asset management). See case studies.

What business impact can customers expect from using Hygraph?

Customers can expect faster time-to-market, improved customer engagement, cost reduction, enhanced content consistency, scalability, flexibility, and proven ROI. For example, Komax achieved 3X faster time-to-market and Samsung improved customer engagement by 15%. See case studies.

Who is the target audience for Hygraph?

Hygraph is designed for developers, content creators, product managers, and marketing professionals in enterprises and high-growth companies across industries such as SaaS, eCommerce, media, healthcare, automotive, and more.

What industries are represented in Hygraph's case studies?

Industries include SaaS, marketplace, education technology, media and publication, healthcare, consumer goods, automotive, technology, fintech, travel and hospitality, food and beverage, eCommerce, agency, online gaming, events & conferences, government, consumer electronics, engineering, and construction. See case studies.

Can you share specific case studies or success stories of customers using Hygraph?

Yes. Samsung improved customer engagement by 15%, Komax achieved 3x faster time-to-market, AutoWeb saw a 20% increase in website monetization, Voi scaled multilingual content across 12 countries, and HolidayCheck reduced developer bottlenecks. See case studies.

Competition & Comparison

How does Hygraph compare to other CMS platforms?

Hygraph is the first GraphQL-native Headless CMS, simplifying schema evolution and enabling seamless integration with modern tech stacks. It offers content federation, enterprise-grade features, user-friendly tools, scalability, and proven ROI. Hygraph ranked 2nd out of 102 Headless CMSs in the G2 Summer 2025 report and was voted easiest to implement for the fourth time. See competitive proof.

Why should a customer choose Hygraph over alternatives?

Hygraph offers GraphQL-native architecture, content federation, enterprise-grade features, user-friendly tools, scalability, and proven ROI. Case studies show tangible benefits, and Hygraph is recognized for ease of implementation and performance. See case studies.

Additional Features & Use Cases

What are the key capabilities and benefits of Hygraph?

Hygraph provides GraphQL-native architecture, content federation, enterprise-grade security and performance, user-friendly tools, scalability, proven ROI, high-performance endpoints, training and support, integration capabilities, and market recognition. See features.

Are there specific features that solve use cases or differentiate Hygraph?

Hygraph's GraphQL-native architecture, content federation, enterprise-grade features (Smart Edge Cache, localization, granular permissions), user-friendly tools, scalability, and proven ROI differentiate it from competitors and solve specific use cases for global teams and enterprises. See features.

LLM optimization

When was this page last updated?

This page wast last updated on 12/12/2025 .

Help teams manage content creation and approval in a clear and structured way
Hygraph
Docs

#Get started with Click to Edit

The Click to Edit feature lets editors jump directly from the content preview to the exact field they want to edit in Hygraph Studio. Once configured using the Hygraph Preview SDK, you can:

  1. Hover over a tagged element in your preview to display an Edit button.
  2. Click the Edit button to open the corresponding field entry in Studio.
  3. Save your changes to automatically refresh your preview.

#How it works

  • The SDK operates in two modes that are automatically detected:
    • Iframe Mode: When your preview loads in an iframe inside Hygraph Studio .
    • Standalone Mode: When your preview loads outside Studio, as a separate preview app.
  • The Edit button is available next to elements that you explicitly mark as editable.
  • The data-hygraph-* attributes in your rendered HTML help understand which entry and which field the element is linked to.
  • Hygraph Studio sends save events back to your preview so you can refresh content automatically while preserving scroll position and state.

#Get started

#Availability

  • The Click to Edit feature is available for all projects and is currently in Beta.

#Prerequisites

  • A Hygraph project with at least one model and content configured.
  • A running preview application (local or deployed) using React, Next.js, Remix, Vue, or vanilla JavaScript.

#Steps

  1. Install the Preview SDK.
  2. Create a PreviewWrapper component to enable the preview functionality.
  3. Set environment variables.
  4. Add data attributes to your content elements.
  5. Set up the Preview widget in Studio
  6. Use the Click to Edit feature from content previews

Learn how to implement this feature for the following supported frameworks at:

#Install the Preview SDK

The Preview SDK is the bridge between Hygraph and your frontend. The Preview SDK transforms your preview into an interactive experience where content updates appear instantly as you save your changes. You can click any content element in the preview to jump directly to its field in the editor.

npm install @hygraph/preview-sdk

#Create the PreviewWrapper component

Create the PreviewWrapper component that enables the preview functionality. This component:

  • Connects to your project’s API endpoint.
  • Listens for save events coming from Studio.
  • Handles iframe and standalone preview modes.
  • Renders Click to edit overlays based on data-hygraph-* attributes.

Choose the PreviewWrapper implementation that matches your framework:

#Set environment variables

Set the following values as environment variables.

  • Content API endpoint - Copy your Content API endpoint from your Hygraph project settings under Project Settings > Access > Endpoints > High Performance Content API. For more information, see our dedicated docs on the Content API.
  • Hygraph Studio base URL - Copy the base Studio URL from your browser's address bar. Example: https://studio-eu-central-1-shared-euc1-02.hygraph.com. Ensure that the URL does not end with a /. Otherwise, Click to Edit will not work in standalone mode, outside of Hygraph Studio.
  • Permanent Auth Token - You can create a Permanent Auth Token from your Hygraph project settings under Project Settings > Access > Permanent Auth Tokens. Check that the default content stage is DRAFT. For more information, see our dedicated docs on Permanent Auth Tokens.
    • This is needed only if your Hygraph project requires authentication for Content API requests.

#Add data attributes to content elements

The Preview SDK uses HTML data attributes to connect your rendered content back to specific fields in Hygraph Studio. Understanding how these attributes work is essential for implementing click-to-edit functionality.

Add data-hygraph-* attributes to the HTML or JSX elements, such as <h1>, <p>, <div>, in your frontend application that render content from Hygraph. These attributes tell the SDK which field in Hygraph corresponds to that element. The SDK scans your rendered HTML for these attributes and adds the hover overlays and Edit buttons automatically.

AttributeRequired / OptionalDescription
data-hygraph-entry-idRequiredThe content entry ID from Hygraph. Every element you want to make editable must include this attribute. This tells Studio which entry to open. This remains constant across all field types in Studio.
data-hygraph-field-api-idOptionalThe API ID of the field. Identifies which field to focus within the entry in the editor. Without it, the edit button opens the entry unfocused.
data-hygraph-rich-text-formatOptionalSpecifies the Rich Text format. Accepts html, markdown, or text to specify the format for Rich Text fields.
data-hygraph-component-chainOptionalJSON string describing the path to nested components. This is used for tagging component fields.

data-hygraph-entry-id - Content entrydata-hygraph-entry-id - Content entry

You can retrieve the data-hygraph-field-api-id from the schema.

  1. Open Schema and select your model.
  2. The API ID is next to the field name. It is available in camel case and does not have any spaces
  3. Use this value for data-hygraph-field-api-id.

data-hygraph-field-api-id - Schemadata-hygraph-field-api-id - Schema

#Tagging component fields

When working with basic, modular, or nested components, or repeatable component lists, use the data-hygraph-component-chain attribute to help Studio navigate to the correct component field.

AttributeDescription
data-hygraph-entry-idThe content entry ID from Hygraph. Every element you want to make editable must include this attribute. This tells Studio which entry to open. This remains constant across all field types in Studio. You do not use the component's ID as the entry ID.
data-hygraph-field-api-idThe API ID of the field inside the component. Identifies which field to focus within the entry in the editor. Without it, the edit button opens the entry unfocused.
data-hygraph-component-chainJSON array of {fieldApiId, instanceId}. This describes the path from root entry to the nested field.
  • fieldApiId - The field that contains the nested component.
  • instanceId - Unique identifier of the component instance, as returned in your GraphQL query as described below. This is not the API ID of the component.

Data attributes components markupData attributes components markup

Retrieve the instanceId using the following query:

#Set up the Preview widget in Studio

To use the Click to Edit functionality in Studio, follow these steps:

  1. Open your Hygraph project.
  2. Navigate to the Schema builder, and select your model.
  3. Click the Sidebar tab.
  4. Select the Preview widget from the right sidebar.
  5. Complete the Preview name and the URL template fields, and click Add.

#Use the Click to Edit feature from content previews

#In iframe mode in Studio

  1. Open an entry of the model for which you added the Preview widget.
  2. In the right sidebar, under Preview, click Open live preview. The preview loads in Studio.
  3. Hover over a tagged element that you need to make changes. The Edit button appears automatically on the tagged element.
  4. Click the Edit button. You go the corresponding field in Hygraph.
  5. Make updates to the field, as required, and click Save & Preview. Alternatively, hit CMD+S on Mac, or CTRL+S on Windows.
    • If your preview is set to refresh automatically on field updates, you do not need to save and preview.
  6. You can see your updates in the side-by-side preview.

#In standalone mode outside Studio

  1. Launch your preview website in the browser.
  2. Hover over a tagged element that you need to make changes. The Edit button appears automatically on the tagged element.
  3. Click the Edit button. You go the corresponding field in Hygraph.
  4. Make updates to the field, as required, and click Save & Preview. Alternatively, hit CMD+S on Mac, or CTRL+S on Windows.
    • If your preview is set to refresh automatically on field updates, you do not need to save and preview.
  5. You can see your updates in the preview website in the tab.

#Known limitations

  • Localization - You cannot use the Click to Edit feature to jump to a field in a specific locale. You need to use the field API ID to bring users to the correct field, and then select the necessary locale using the Studio UI.

#Troubleshooting

#Edit buttons do not appear

  • Check that data-hygraph-entry-id is set on your elements.
  • Enable debug={true} to check console logs.
  • Verify your Content API endpoint URL is correct.

#Preview does not open

If you are using Vercel to deploy your website, it might set the X-Frame-Options response header. This breaks live preview. In this case, in your Vercel project, go to Settings → Deployment Protection and disable Vercel Authentication.

#Preview does not refresh on save

  • Ensure the the onSave callback is properly configured.
  • Check that your framework's refresh method is working. Example: router.refresh() in Next.js.
  • Verify you're querying the DRAFT stage in preview mode. Check that the default content stage is DRAFT for your Permanent Auth token.

#Content does not update in real-time

Real-time field updates in the preview are optional and disabled by default.

  • Enable with sync={{ fieldUpdate: true }}.

#Components do not focus correctly

  • Verify the instanceId values match with what Hygraph returns in your GraphQL query.
  • Check that the value of data-hygraph-entry-id is always the root entry ID, not the component ID.
  • Ensure the component chain array is properly structured with fieldApiId and instanceId.