Frequently Asked Questions

Product Information & Integration

What is Hygraph and how does it work with GraphQL Mesh?

Hygraph is a GraphQL-native headless content management system (CMS) that allows you to manage and deliver content across multiple channels. When used with GraphQL Mesh, Hygraph can be integrated as a data source alongside other APIs (such as REST, OpenAPI, gRPC, MongoDB, and more), enabling you to query and combine data from multiple services in a single GraphQL query. This is particularly useful for projects that require data from various sources, such as travel sites that combine hotel data from Hygraph with weather information from external APIs. [Source]

How can I use Hygraph as a source in GraphQL Mesh?

To use Hygraph as a source in GraphQL Mesh, you need to define Hygraph as a source in your .meshrc.yml configuration file, specifying your Hygraph endpoint. You can also add authentication headers if your endpoint is not public. This setup allows you to extend your Hygraph schema and resolve fields from other APIs, such as weather data, by combining them in a single query. [Source]

What types of APIs can I integrate with Hygraph using GraphQL Mesh?

With GraphQL Mesh, you can integrate Hygraph with a wide range of APIs, including GraphQL, REST, OpenAPI, gRPC, and MongoDB. This enables you to build unified schemas and query data from multiple sources in a single request, streamlining complex integrations for projects like travel sites, eCommerce platforms, and more. [Source]

How do I authenticate requests to my Hygraph endpoint in GraphQL Mesh?

If your Hygraph API endpoint is not public, you need to create a Permanent Auth Token in Hygraph and add it to your GraphQL Mesh configuration under operationHeaders as an Authorization header. This ensures secure access to your Hygraph project data. [Documentation]

Can I extend Hygraph's schema when using GraphQL Mesh?

Yes, you can extend Hygraph's schema in GraphQL Mesh by providing additionalTypeDefs in your configuration. This allows you to add new fields or types, such as adding a forecast field to a Destination type, and resolve them using data from other APIs. [Source]

How do I resolve fields from external APIs in my Hygraph schema using GraphQL Mesh?

You can use additionalResolvers in your GraphQL Mesh configuration to resolve fields in your Hygraph schema using data from external APIs. For example, you can resolve a forecast field on a Destination type by fetching weather data from a weather API, passing required arguments such as latitude and longitude. [Source]

Where can I find example code for integrating Hygraph with GraphQL Mesh?

You can find example code for integrating Hygraph with GraphQL Mesh in the official Hygraph GitHub repository at hygraph-examples/with-graphql-mesh. This example demonstrates how to combine Hygraph with other APIs using GraphQL Mesh. [Source]

What are some practical use cases for combining Hygraph with other APIs using GraphQL Mesh?

Practical use cases include building travel sites that combine hotel data from Hygraph with real-time weather information, eCommerce platforms that aggregate product data from multiple sources, and content-rich applications that require data federation from various APIs. This approach reduces frontend complexity and streamlines data management. [Source]

How do I start a Hygraph project for use with GraphQL Mesh?

You can start a Hygraph project by signing up at hygraph.com and selecting a schema template, such as the "Travel Site" template, to quickly scaffold your project with example data. This makes it easy to experiment with integrations and GraphQL Mesh configurations. [Source]

What is the benefit of using GraphQL Mesh with Hygraph instead of making multiple API requests on the frontend?

Using GraphQL Mesh with Hygraph allows you to combine data from multiple APIs in a single query, reducing frontend complexity and improving maintainability. This approach centralizes data fetching, making it easier to manage and extend your application's data layer. [Source]

How do I handle authentication for external APIs when using GraphQL Mesh with Hygraph?

When integrating external APIs (such as Weatherbit) with GraphQL Mesh and Hygraph, you need to provide the required API keys or authentication tokens in your configuration. These are typically passed as arguments or headers in the additionalResolvers section of your .meshrc.yml file. [Source]

Can I use Hygraph to manage content for multilingual or multi-market projects?

Yes, Hygraph supports localization and asset management, making it suitable for multilingual and multi-market projects. You can manage content in multiple languages and deliver localized experiences across different regions. [Features]

What is the process for adding new data sources to a Hygraph project using GraphQL Mesh?

To add new data sources, define each source in your .meshrc.yml file, specifying the handler type (e.g., GraphQL, OpenAPI) and endpoint. You can then extend your schema and add resolvers to fetch and combine data from these sources in your unified GraphQL API. [Source]

How do I test my GraphQL Mesh and Hygraph integration?

You can test your integration by running queries in the API Playground provided by Hygraph or by using tools like GraphQL Playground or Postman. This allows you to verify that your unified schema and resolvers are working as expected. [GraphQL Playground]

What are the main benefits of using Hygraph for content management?

Hygraph offers a GraphQL-native architecture, content federation, scalability, enterprise-grade security, and user-friendly tools. These features enable efficient content management, faster speed-to-market, and seamless integration with modern tech stacks. [Features]

Does Hygraph provide example schema templates for new projects?

Yes, Hygraph provides schema templates such as the "Travel Site" template, which helps you quickly scaffold new projects with example data and structure, making it easier to get started with integrations and development. [Source]

How do I run my GraphQL Mesh server with Hygraph integration?

After configuring your .meshrc.yml file, you can start your GraphQL Mesh server by running your development script, typically npm run dev. This will launch the server and allow you to execute unified queries against your combined schema. [Source]

What is the recommended way to manage API keys and secrets in GraphQL Mesh projects?

It is recommended to store API keys and secrets in environment variables or secure configuration files, and reference them in your .meshrc.yml file. This helps keep sensitive information secure and out of version control. [Source]

Can I use Hygraph with other data federation tools besides GraphQL Mesh?

Yes, Hygraph can be integrated with other data federation and orchestration tools that support GraphQL APIs, allowing you to build complex, federated data architectures. Refer to Hygraph's documentation for more details on supported integrations. [Integrations]

Features & Capabilities

What are the key features of Hygraph?

Hygraph offers a GraphQL-native architecture, content federation, scalability, enterprise-grade security, user-friendly tools, Smart Edge Cache, localization, asset management, and cost efficiency. These features make it suitable for modern, scalable, and flexible content management across industries. [Features]

Does Hygraph support integration with Digital Asset Management (DAM) systems?

Yes, Hygraph integrates with several DAM systems, including Aprimo, AWS S3, Bynder, Cloudinary, Imgix, Mux, and Scaleflex Filerobot. These integrations enhance asset management capabilities for content-rich projects. [Integrations]

What APIs does Hygraph provide?

Hygraph provides multiple APIs, including the Content API (read & write), High Performance Content API (low latency, high throughput), MCP Server API (for AI assistants), Asset Upload API, and Management API. These APIs support a wide range of integration and automation scenarios. [API Reference]

What technical documentation is available for Hygraph?

Hygraph offers comprehensive technical documentation covering API references, schema components, references, webhooks, and AI integrations. You can access these resources at Hygraph Documentation.

How does Hygraph ensure high performance for content delivery?

Hygraph delivers high performance through optimized endpoints designed for low latency and high read-throughput. The platform actively measures API performance and provides best practices for optimization. For more details, see the High-Performance Endpoint blog post and the GraphQL Report 2024.

What integrations are available in the Hygraph Marketplace?

The Hygraph Marketplace offers pre-built apps for headless commerce systems, Product Information Management (PIM), and more. Developers can also build custom integrations using the SDK or connect external APIs via REST and GraphQL. [Marketplace]

Pricing & Plans

What does the Hygraph Hobby plan cost and what features are included?

The Hygraph Hobby plan is free forever and includes 2 locales, 3 seats, 2 standard roles, 10 components, unlimited asset storage, 50MB per asset upload size, live preview, and commenting/assignment workflow. [Pricing]

What is included in the Hygraph Growth plan and how much does it cost?

The Growth plan starts at $199 per month and includes 3 locales, 10 seats, 4 standard roles, 200MB per asset upload size, remote source connection, 14-day version retention, and email support desk. [Pricing]

What features are available in the Hygraph Enterprise plan?

The Enterprise plan offers custom pricing and includes custom limits on users, roles, entries, locales, API calls, components, and more. It also features scheduled publishing, dedicated infrastructure, global CDN, security & governance controls, SSO, multitenancy, instant backup recovery, custom workflows, dedicated support, and custom SLAs. [Pricing]

Security & Compliance

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 security, privacy, and data protection. [Secure features]

How does Hygraph ensure data security and privacy?

Hygraph provides enterprise-grade security features, including granular permissions, audit logs, SSO integrations, encryption at rest and in transit, regular backups, and dedicated hosting options. The platform also uses ISO 27001-certified providers and data centers. [Secure features]

Use Cases & Customer Success

Who can benefit from using Hygraph?

Hygraph is designed for developers, product managers, content creators, marketing professionals, and solutions architects in enterprises, agencies, eCommerce, media, technology, healthcare, and more. Its flexibility and scalability make it suitable for a wide range of industries. [Case studies]

What industries are represented in Hygraph's customer 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. [Case studies]

Can you share some customer success stories using Hygraph?

Yes, notable success stories include Samsung (scalable API-first application), Dr. Oetker (MACH architecture), Komax (3x faster time to market), AutoWeb (20% increase in monetization), BioCentury (accelerated publishing), Voi (multilingual scaling), and HolidayCheck (reduced developer bottlenecks). [Case studies]

What business impact can customers expect from using Hygraph?

Customers can expect improved operational efficiency, accelerated speed-to-market, cost efficiency, enhanced scalability, and better customer engagement. For example, Komax achieved a 3x faster time-to-market, and Samsung improved customer engagement by 15%. [Case studies]

How long does it take to implement Hygraph?

Implementation time varies by project complexity. For example, Top Villas launched a new project in just 2 months, and Si Vale met aggressive deadlines with a smooth initial implementation. Hygraph's onboarding process and resources support fast adoption. [Top Villas Case Study]

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

Customers praise Hygraph for its intuitive user interface, ease of setup, and ability for non-technical users to manage content independently. Some users note that it can be complex for less technical users, but overall feedback is positive. [Try Hygraph]

Pain Points & Market Differentiation

What problems does Hygraph solve for businesses?

Hygraph addresses operational inefficiencies (eliminating developer dependency, modernizing legacy stacks), financial challenges (cost reduction, faster launches), and technical issues (schema evolution, integration, performance, localization, asset management). [Case studies]

How does Hygraph differentiate itself from other CMS platforms?

Hygraph is the first GraphQL-native headless CMS, offering content federation, user-friendly tools, enterprise-grade features, and proven ROI. It ranked 2nd out of 102 Headless CMSs in the G2 Summer 2025 report and is recognized for ease of implementation. [G2 Report]

What pain points do Hygraph customers commonly express?

Customers often mention operational inefficiencies (developer dependency, workflow challenges), financial challenges (high costs, slow launches), and technical issues (complex schema evolution, integration difficulties, performance bottlenecks, localization, and asset management). [Case studies]

How does Hygraph solve integration and data federation challenges?

Hygraph's content federation feature allows integration of multiple data sources without duplication, ensuring consistent and efficient content delivery across channels. This addresses conflicting needs and integration difficulties common in global teams. [Content Federation]

Introducing Click to Edit

Working with Hygraph as a Source for GraphQL Mesh

Extend and integrate your Hygraph project with other APIs, including GraphQL, OpenAPI, gRPC, Mongo, and more with GraphQL Mesh.
Jamie Barton

Written by Jamie 

Aug 26, 2021
hygraph and graphql mesh

Imagine building a travel site that is packed with destinations visitors can explore to plan their summer vacation. While you'll want to show off the great amenities, and gorgeous views, you may also want to show details about the current weather.

One of the most spouted features of GraphQL is that it's a single endpoint for your data — that's fine if you're using one service for all of your data.

You'll most likely want to query hotel reviews and photos from your Content Management System (Hygraph), the current forecast using a Weather API (Weatherbit), and maybe flight prices from a flights API (Rapid) but doing this in one request isn't so straightforward — until now.

You could make requests to multiple APIs on the frontend, but you'll often find this adds complexity to those managing the frontend.

If you want to follow along — create a project with Weatherbit.io and a new Hygraph project using the "Travel Site" schema template.

GraphCMS landing page displaying the content editor interface and headline "Finally A CMS That Works With You."

Open the API Playground and run the following query:

{
hotels {
name
rooms
photos {
url
}
reviews {
content {
html
}
destinations {
name
description
}
}
}
}

You should see some example data we populated your project with when you created it from the schema template.

Now, if you imagine the following query:

{
hotels {
name
rooms
photos {
url
}
reviews {
content {
html
}
}
destinations {
name
description
forecast {
uv
weather {
description
}
}
}
}
}

You'll notice we are trying to fetch forecast on destinations, and if you try to run this within your project, you'll see it's not defined, and get an error.

You could create a model in Hygraph and keep a relation to forecast up to date, but this isn't scalable. Thanks to APIs we can handle this request programmatically.

#GraphQL Mesh

To query data across multiple remote APIs, we'll be using GraphQL Mesh.

You'll want to obtain an API key with Weatherbit and create a new project with Hygraph. You can select the "Travel site" project template to quickly scaffold a new project with example destinations.

Then, inside of a new folder for your project, create the file .meshrc.yml and add the following:

sources:
- name: Hygraph
handler:
graphql:
endpoint: YOUR_HYGRAPH_ENDPOINT
- name: Weather
handler:
openapi:
source: https://www.weatherbit.io/static/swagger.json
baseUrl: https://api.weatherbit.io/v2.0/current

ℹ️ Don't forget to replace YOUR_HYGRAPH_ENDPOINT with your project endpoint. If your API endpoint isn't public, you'll want to create a Permanent Auth Token, and update the Hygraph source:

sources:
- name: Hygraph
handler:
graphql:
endpoint: YOUR_HYGRAPH_ENDPOINT
operationHeaders:
Authorization: "Bearer YOUR_HYGRAPH_TOKEN"

Now, let's configure GraphQL Mesh to add a new field to our Hotel type (provided by Hygraph).

We can do this by providing additionalTypeDefs to our .meshrc.yml:

additionalTypeDefs: |
extend type Destination {
forecast: Forecast
}

Then we can provide additionalResolvers to our .meshrc.yml to connect the query to our "Weather" handler:

additionalResolvers:
- targetTypeName: Destination
targetFieldName: forecast
requiredSelectionSet: |
{
location {
latitude
longitude
}
}
sourceName: Weather
sourceTypeName: Query
sourceFieldName: getForecastDailyLatequalToLatLonLon
sourceArgs:
lat: "{root.location.latitude}"
lon: "{root.location.longitude}"
key: YOUR_WEATHERBIT_API_KEY
result: data[0]

ℹ️ Don't forget to replace YOUR_WEATHERBIT_API_KEY with your actual API key.


Inside of the resolvers above we declare Destination as our target type, and the additional type definition forecase that we want to create a resolver for.

The requiredSelectionSet is necessary because we need to fetch the latitude and longitude from the query we're executing — the root.

The sourceName is the source handler we declared above, in this case "Weather". We then declare the query that is to be ran against the "Weather" API — in this case getForecastDailyLatequalToLatLonLon.

To finish connecting the source of our additional resolver, we'll pass the latitude and longitude from the Destination model to the query arguments, along with our API key.


To start the server you'll want to run the custom dev script we wrote earlier, npm run dev.

Now, if we run the query from earlier, we'll get the following results:

GraphQL Mesh playground interface displaying a query and JSON response for hotel data

{
"data": {
"hotels": [
{
"name": "Luxury Villa on the Volcano",
"rooms": 0,
"photos": [
{
"url": "https://eu-central-1-shared-euc1-02.graphassets.com/AvHQ3RDvFSousA8iwElOKz/DRyuTiY0Tblrkf2AgeMy"
},
{
"url": "https://eu-central-1-shared-euc1-02.graphassets.com/AvHQ3RDvFSousA8iwElOKz/gWkbJ8CERnmBonnqJVNP"
}
],
"reviews": [
{
"content": {
"html": "<p>Fusce eget ultricies quam, sollicitudin varius diam. Suspendisse ut massa vel velit sollicitudin facilisis vel facilisis augue. Praesent sodales finibus nibh sit amet faucibus. Nam faucibus diam vel arcu venenatis euismod. Morbi metus neque, porttitor in tincidunt ac, ultrices a elit. Mauris varius aliquet neque id viverra.</p>"
}
}
],
"destinations": [
{
"name": "Santorini",
"description": "",
"forecast": {
"uv": 6.18308,
"weather": {
"description": "Clear sky"
}
}
}
]
}
]
}
}

Great success! You can get the code for this example on GitHub.

Blog Author

Jamie Barton

Jamie Barton

Jamie is a software engineer turned developer advocate. Born and bred in North East England, he loves learning and teaching others through video and written tutorials. Jamie currently publishes Weekly GraphQL Screencasts.

Share with others

Sign up for our newsletter!

Be the first to know about releases and industry news and insights.