Frequently Asked Questions

Nuxt + Hygraph Implementation

How do I create a new Nuxt app to use with Hygraph?

To create a new Nuxt app, open your terminal, navigate to your desired directory, and run npx nuxi@latest init my-nuxt-project. Follow the interactive setup prompts to configure your project, then change into your project directory and install dependencies using your preferred package manager (yarn, npm, pnpm, or bun). Start the app in development mode with npm run dev. Your app will be available at http://localhost:3000/.

How do I configure Hygraph assets to work with the Nuxt image module?

To use Hygraph as an image provider in Nuxt, add the following to your nuxt.config.ts file:

// nuxt.config.ts
export default defineNuxtConfig({
  ...other configuration parameters here,
  image: {
    providers: {
      hygraph: {
        baseURL: "https://media.graphassets.com"
      }
    }
  }
})
This setup allows Nuxt to fetch images directly from Hygraph's asset CDN.

How do I get data from Hygraph into my Nuxt project?

Start by cloning the Hygraph demo project using the provided link. The demo includes a Page content model with fields for Title, Slug, and Body. After cloning, you can view and edit the schema and sample content entry in the Hygraph dashboard. This setup provides a foundation for integrating Hygraph data into your Nuxt app.

How do I enable Content API access for my Nuxt + Hygraph integration?

Go to Project settings > Access > API Access > Content API in your Hygraph project. Find the Manage Content API access permissions box and click Initialize defaults. Then, copy the High Performance Read-only Content API endpoint from Project settings > Access > API Access > Endpoints for use in your Nuxt app.

How can I test a GraphQL query in the Hygraph API Playground?

Navigate to the API Playground in your Hygraph project and use a sample query such as:

query Page {
  page(where: {slug: "hygraph-works-with-any-framework"}) {
    title
    body {
      text
    }
  }
}
Executing this query should return the sample content entry from the demo project.

How do I generate Hygraph content with Nuxt after enabling API access?

Once API access is enabled, you can use the Pages GraphQL query in your Nuxt app to fetch and render content. This allows you to dynamically display Hygraph-managed content in your Nuxt application.

How do I add Tailwind CSS to my Nuxt project with Hygraph?

Install Tailwind CSS by running npm install @nuxtjs/tailwindcss in your Nuxt project directory. Then, add '@nuxtjs/tailwindcss' to the modules array in your nuxt.config.ts file. This provides base styles for your content.

How do I install and configure the Nuxt GraphQL client for Hygraph?

Install the nuxt-graphql-client module with npm install nuxt-graphql-client. Add 'nuxt-graphql-client' to the modules array in nuxt.config.ts. Set the GQL_HOST variable in your .env file to your Hygraph endpoint. This enables code generation for GraphQL types and queries.

How do I add and organize GraphQL queries in my Nuxt + Hygraph project?

Create a queries folder in your project and add your GraphQL queries as .gql files. For example, pages.gql for querying all pages and page.gql for querying a single page by slug. The nuxt-graphql-client module will automatically generate types and helper functions for these queries.

How do I display a list of pages from Hygraph on my Nuxt homepage?

After setting up your queries and environment variables, use the GqlPages() function in your pages/index.vue file to fetch and render a list of pages from Hygraph. Loop through the pages array and display each page's title with a link to its dynamic route.

How do I create dynamic page routes in Nuxt for Hygraph content?

Create a page directory inside pages and add a [slug].vue file. Use the useRoute() and GqlPage() functions to fetch the page data based on the slug parameter. Render the page's title and body in the template section.

What is the purpose of the GqlPage() function in the Nuxt + Hygraph integration?

The GqlPage() function is a helper generated by the nuxt-graphql-client module. It executes the Page GraphQL query to fetch specific page data (title, slug, body) from Hygraph, enabling dynamic content rendering in your Nuxt app.

Where can I find more complete implementation examples for Nuxt + Hygraph?

You can clone starter projects from the Hygraph dashboard or visit the Nuxt starters page for more comprehensive implementation examples.

Are there video tutorials available for connecting Nuxt and Hygraph?

Yes, you can watch a quick video on how to connect Nuxt and Hygraph on YouTube. There is also a video about the nuxt-graphql-client module at this link.

What is the recommended way to organize code for Nuxt + Hygraph projects?

Organize your code by separating GraphQL queries into a queries folder, using environment variables for endpoints, and leveraging Nuxt's modular configuration for plugins like Tailwind CSS and the GraphQL client. This structure improves maintainability and scalability.

How can I quickly preview content changes from Hygraph in my Nuxt app?

After making changes in Hygraph, you can instantly see updates in your Nuxt app by refreshing the page or using hot module replacement in development mode. This enables rapid iteration and content previewing.

What are some common troubleshooting steps for Nuxt + Hygraph integration?

Ensure your API endpoint and permissions are correctly configured in Hygraph, verify your .env variables match your project, and check that all required modules (e.g., nuxt-graphql-client, @nuxtjs/tailwindcss) are installed and listed in nuxt.config.ts. Use the API Playground to test queries independently.

Can I use Hygraph with other frameworks besides Nuxt?

Yes, Hygraph can be integrated with a wide range of frameworks including Next.js, Astro, Remix, SvelteKit, and more. Visit the Implementations Overview for guides on other frameworks.

Features & Capabilities

What are the key features of Hygraph?

Hygraph offers a GraphQL-native architecture, content federation, enterprise-grade security and compliance, Smart Edge Cache, localization, granular permissions, and integrations with major platforms. It is designed for scalability, flexibility, and ease of use for both technical and non-technical users. Learn more.

Does Hygraph provide an API for content management?

Yes, Hygraph provides multiple APIs including a high-performance GraphQL Content API, Management API, Asset Upload API, and MCP Server API for AI integrations. These APIs enable programmatic content management, asset uploads, and secure communication. API Reference

What integrations does Hygraph support?

Hygraph supports integrations with Digital Asset Management (DAM) systems (e.g., Aprimo, AWS S3, Bynder, Cloudinary), hosting platforms (Netlify, Vercel), Product Information Management (Akeneo), commerce solutions (BigCommerce), translation/localization (EasyTranslate), and more. See the Hygraph Marketplace for a full list.

How does Hygraph ensure high performance for content delivery?

Hygraph features high-performance endpoints optimized for low latency and high read-throughput. The read-only cache endpoint delivers 3-5x latency improvement, and the platform actively measures GraphQL API performance. Performance Insights

What technical documentation is available for Hygraph?

Hygraph provides extensive documentation including API references, schema guides, getting started tutorials, integration guides, and AI feature documentation. Access all resources at the Hygraph Documentation portal.

Is Hygraph easy to use for non-technical users?

Yes, Hygraph is praised for its intuitive interface and user-friendly setup. Customers report that both technical and non-technical users can quickly adapt, make content changes, and manage workflows efficiently. See user feedback

What security and compliance certifications does Hygraph have?

Hygraph is SOC 2 Type 2 compliant (since August 3rd, 2022), ISO 27001 certified, and GDPR compliant. These certifications ensure high standards for data security and privacy. Security Features

What security features does Hygraph offer?

Hygraph provides granular permissions, SSO integrations (OIDC/LDAP/SAML), audit logs, encryption in transit and at rest, regular backups, secure API policies, and automatic backup & recovery. All endpoints use SSL certificates. Learn more

Use Cases & Benefits

Who can benefit from using Hygraph?

Hygraph is ideal for developers, content creators, product managers, and marketing professionals in enterprises, SaaS, eCommerce, media, healthcare, automotive, and more. Its flexibility and scalability support a wide range of industries and roles.

What business impact can I expect from using Hygraph?

Customers report faster time-to-market (e.g., Komax achieved 3x faster launches), improved customer engagement (Samsung saw a 15% increase), cost reduction, enhanced content consistency, and scalability. See case studies

What problems does Hygraph solve for businesses?

Hygraph addresses developer dependency, legacy tech stack modernization, content inconsistency, workflow inefficiencies, high operational costs, slow speed-to-market, scalability issues, complex schema evolution, integration difficulties, performance bottlenecks, and localization challenges.

What industries are represented in Hygraph's case studies?

Hygraph's case studies span SaaS, marketplaces, education technology, media, healthcare, consumer goods, automotive, technology, fintech, travel, food & beverage, eCommerce, agencies, gaming, events, government, consumer electronics, engineering, and construction. See all industries

Can you share some customer success stories with Hygraph?

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

How long does it take to implement Hygraph?

Implementation times vary by project. For example, Top Villas launched in 2 months, Voi migrated from WordPress in 1-2 months, and Si Vale met aggressive deadlines. Hygraph offers structured onboarding and starter projects for rapid adoption. Onboarding Guide

What onboarding and support resources are available for Hygraph?

Hygraph provides a free signup, structured onboarding (introduction calls, technical kickoffs), extensive documentation, starter projects, Slack community, webinars, and 24/7 technical support. Getting Started

Competition & Comparison

How does Hygraph compare to traditional CMS platforms?

Hygraph is the first GraphQL-native Headless CMS, enabling seamless integration with modern tech stacks and simplifying schema evolution. Unlike traditional CMSs that rely on REST APIs, Hygraph offers content federation, advanced security, and user-friendly tools for both developers and non-technical users.

Why should I choose Hygraph over other headless CMS solutions?

Hygraph stands out with its GraphQL-native architecture, content federation, enterprise-grade features, proven ROI (e.g., Komax 3x faster time-to-market), and market recognition (ranked 2nd out of 102 Headless CMSs in G2 Summer 2025). It is designed for scalability, security, and ease of use. See proof

What makes Hygraph unique in the headless CMS market?

Hygraph is the first GraphQL-native Headless CMS, offers content federation without duplication, and provides robust enterprise features. It is recognized for ease of implementation and is ideal for global, multi-channel content delivery.

What awards or recognition has Hygraph received?

Hygraph ranked 2nd out of 102 Headless CMSs in the G2 Summer 2025 report and has been voted the easiest to implement headless CMS four times. See details

Technical Requirements & Support

What are the technical requirements for integrating Hygraph with Nuxt?

You need a Nuxt project (v3+ recommended), Node.js, a Hygraph account, and the nuxt-graphql-client module. Ensure your API endpoints and permissions are configured in Hygraph, and set environment variables in your Nuxt project.

Where can I get support for Hygraph + Nuxt integration issues?

You can access support through Hygraph's documentation, community Slack (slack.hygraph.com), webinars, and 24/7 technical support for customers. Documentation

How can I report a security incident or concern with Hygraph?

Hygraph provides a process for reporting security incidents and concerns. Details are available on the Secure Features page.

Does Hygraph offer backup and recovery options?

Yes, Hygraph offers automatic backup and one-click recovery, allowing you to roll back to a previous working environment within seconds. Learn more

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

#Nuxt + Hygraph

#Overview

Nuxt is a free, open-source Vue framework. You can use it to create type-safe, performant and production-grade full-stack web applications and websites intuitively.

#Creating a new Nuxt app

To start, we need to initialize a new Nuxt project. Open up your terminal, navigate to where you want your project, and run the following command:

npx nuxi@latest init my-nuxt-project

The interactive setup will ask you questions to configure your project. Initialize with the following answers:

  • Current nuxt version, Ok to proceed: Yes (y)
  • Choose package manager: npm, pnpm, yarn, or bun (the guide will use yarn)
  • Anonymous usage data collection: Yes or No
  • Initial git repository: Yes or No

Change directory into your new project from your terminal:

cd my-nuxt-project

The interactive setup should install dependencies automatically using the package manager - yarn, pnpm, npm - of your choosing, but you can use the install command if needed:

npm install

Start your Nuxt app in development mode:

npm run dev

Your new Nuxt app is now available in the browser at http://localhost:3000/

NuxtNuxt

#Configure Hygraph assets to work with Nuxt

To work with Nuxt image module, we need to specify Hygraph as an image provider by adding the base URL in the nuxt.config.ts file.

Your config file should contain the following code:

// nuxt.config.ts
export default defineNuxtConfig({
... other configuration parameters here
image: {
providers: {
hygraph: {
baseurl: "https://media.graphassets.com"
}
}
}
})

In the above config, we are using Hygraph as our image source.

#Getting data from Hygraph

Now that you have created your Nuxt project, it's time to add some data from Hygraph. Start by cloning our demo Hygraph project:

Click here to clone the demo project

After cloning, you will have a simple project that contains one content model called Page that contains fields for Title, Slug, and Body; and one content entry.

If you navigate to the Schema builder and click on the Page model, you will see this:

Demo project - Page modelDemo project - Page model

And if you navigate to the Content editor and view the sample entry details, you'll see this:

Demo project - Sample content entryDemo project - Sample content entry

#Content API

Before you can connect Nuxt to Hygraph, you will need to configure Content API access permissions for unauthenticated requests.

To do this, we'll to go Project settings > Access > API Access > Content API in our Hygraph project, scroll to find the Manage Content API access permissions box and click Initialize defaults:

Content API permissionsContent API permissions

Finally, we will copy the High Performance Read-only Content API endpoint from Project settings > Access > API Access > Endpoints. You will use it to connect Nuxt to Hygraph later on.

#Testing a query in the API playground

Next, you should test if you can fetch the information in the sample content entry that we showed you earlier. To do this, navigate to the API Playground in your project and use the following query:

If you execute the query, the response should fetch the sample query in the demo project you cloned.

#Generating Hygraph content with Nuxt

After enabling API access, you can start using the Pages query with your Nuxt app to render content.

#Adding Tailwind CSS to Nuxt

Use the terminal to go back to your Nuxt app, and type the following command:

npm install @nuxtjs/tailwindcss

This will install Tailwind CSS, so you have a few base styles to use with your content.

#Installing Nuxt GraphQL Client

The next step is to add the nuxt-graphql-client module.

This helps with codegen for GraphQL functionality and types, and provides an easy way to use GraphQL API's in Nuxt.

To install the client, type the following command:

npm install nuxt-graphql-client

After the installation finishes, add the following to your nuxt.config.ts file:

// nuxt.config.ts
export default defineNuxtConfig({
devtools: { enabled: true },
modules: ['@nuxtjs/tailwindcss','nuxt-graphql-client']
})

The nuxt-graphql-client module offers some convenient helpers for typing and querying.

Add the following to your .env file so the module knows how to connect to Hygraph for the introspection of the schema to make types, and to be able to query.

GQL_HOST=https://<HYGRAPH_CDN_LOCATION>.cdn.hygraph.com/content/<ID>/master

Want to see Nuxt and Hygraph in action? Watch a quick video on how to connect Nuxt and Hygraph:

#Adding GraphQL queries

Now that you have all the packages installed, create a queries folder and add your GraphQL queries in there as files with a .gql extension:

Query all pages - file location & name: ./queries/pages.gql

# File name: pages.gql
# File location ./queries/pages.gql
query Pages {
pages {
title
slug
body {
text
}
}
}

Query single page by slug - file location & name: ./queries/page.gql

# File name: page.gql
# File location: ./queries/page.gql
query Page($slug: String!) {
page(where: { slug: $slug }) {
title
body {
text
}
}
}

The nuxt-graphql-client module finds this folder and automatically creates types and convenience functions for all queries it finds.

#Getting a list of pages for the homepage

After adding your .env file, go to your index.vue file in the pages directory and add the following code:

HomepageHomepage

#Creating dynamic page routes with Nuxt

Now, that we have a list of pages in our homepage, we need to create a dynamic route for each page. To do this, create a new directory in the pages directory called page and a file called [slug].vue inside this directory.

Add the following code:

#Code overview

The template section of our Vue component contains the markup that renders our content on the homepage.

In the script section, we use the GqlPage() function to ask Hygraph with our Page query to fetch the title, slug, and body.

Dynamic pageDynamic page

Congratulations! You have a homepage and a dynamic page route to render all pages and their content.