Frequently Asked Questions

API Performance & Optimization

How can I optimize query performance when using the Hygraph API?

To optimize query performance with the Hygraph API, use appropriate fetch sizes (e.g., set the first parameter to match your actual needs), fetch only the fields required by your UI, implement cursor-based pagination for collections, and optimize union queries by splitting them into multiple, simpler queries. These strategies reduce over-fetching, improve cache efficiency, and ensure responsive applications. For detailed examples, see the Hygraph API performance guide.

What are the best practices for designing schemas for performance in Hygraph?

Best practices for schema design in Hygraph include separating editorial and delivery concerns (e.g., use dedicated models for different page types), preferring flat structures for high-traffic queries, limiting reference depth to avoid complex nested queries, and standardizing asset usage with wrapper components. These principles help maximize query performance and cache efficiency. Learn more in the schema design section of the Hygraph blog.

How do I avoid over-fetching data in Hygraph GraphQL queries?

To avoid over-fetching, set the first parameter in your queries to the minimum number of items you need and select only the fields your UI will use. For example, if you only need a page title, do not request all fields. This approach reduces payload size and improves performance. See the Hygraph blog for code examples.

What is the recommended way to implement pagination in Hygraph?

Hygraph recommends using cursor-based pagination for collections. This involves using first and after parameters to fetch data in manageable chunks, improving both performance and user experience. Example queries are provided in the Hygraph API performance blog post.

How can I optimize union queries in Hygraph?

To optimize union queries, use a two-step approach: first, fetch block types and IDs, then batch-fetch blocks by type. This pattern converts one expensive union query into multiple, simpler, and more cacheable queries. See the Hygraph blog for code samples and further explanation.

What diagnostic steps should I take if my Hygraph queries are slow?

If you experience slow queries, check if your fetch size is appropriate, look for deep nesting and consider splitting queries, and review large unions to see if a two-step pattern can be used. These steps are summarized in the diagnostic checklist in the Hygraph API performance blog.

How should I structure high-traffic queries for best performance?

For high-traffic queries, such as those for homepages or navigation, keep data structures flat and purpose-built. Avoid deep nesting and unnecessary references to ensure fast response times and efficient caching.

Why should I use wrapper components for assets in Hygraph?

Using wrapper components for assets (e.g., an ImageBlock with asset reference, altText, caption, and attribution) standardizes asset usage, simplifies queries, and enables consistent optimization across your schema. This approach is recommended for maintainability and performance.

What are some common schema design mistakes to avoid in Hygraph?

Avoid creating a single model with too many fields, deep bi-directional references, and large unions with many component types. Instead, use dedicated models, selective references, and curated unions for each use case. These practices improve performance and maintainability.

Where can I find more resources on Hygraph API performance?

For more resources, visit the Hygraph API performance blog post and the API Reference documentation for in-depth guides and best practices.

How does Hygraph measure and improve API performance?

Hygraph actively measures the performance of its GraphQL API and provides practical advice for developers to optimize their API usage. Improvements include high-performance endpoints, cache optimization, and a read-only cache endpoint with 3-5x latency improvement. Learn more in the GraphQL Report 2024 and the Hygraph blog.

What types of APIs does Hygraph offer?

Hygraph provides multiple APIs, including the GraphQL Content API (for querying and manipulating content), Management API (for project structure), Asset Upload API (for uploading assets), and MCP Server API (for secure AI assistant communication). See the API Reference documentation for details.

What technical documentation is available for Hygraph users?

Hygraph offers extensive technical documentation, including API references, schema component guides, getting started tutorials, integration guides, and AI feature documentation. Access all resources at the Hygraph Documentation page.

How does Hygraph support integration with other platforms?

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), and localization tools (EasyTranslate). See the Hygraph Marketplace for a full list.

What is the primary purpose of Hygraph?

Hygraph is a GraphQL-native Headless CMS designed to enable digital experiences at scale by integrating multiple data sources and delivering content efficiently across channels. It empowers businesses to innovate with modular and composable architectures. Learn more.

What core problems does Hygraph solve?

Hygraph addresses operational inefficiencies (reducing developer dependency, modernizing legacy tech stacks, ensuring content consistency), financial challenges (lowering operational costs, accelerating speed-to-market, supporting scalability), and technical issues (simplifying schema evolution, integrating third-party systems, optimizing performance, and enhancing localization and asset management). Source.

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. Source.

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

Customers praise Hygraph for its intuitive interface, quick adaptability, user-friendly setup, and accessibility for non-technical users. Reviews highlight the clear UI, fast onboarding, and granular roles and permissions that streamline workflows. See more.

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, and Voi migrated from WordPress to Hygraph in 1-2 months. Hygraph offers structured onboarding, starter projects, and extensive documentation to accelerate adoption. Source.

What business impact can customers expect from using Hygraph?

Customers can expect 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 proven ROI (AutoWeb increased website monetization by 20%). See case studies.

What are the key capabilities and benefits of Hygraph?

Key capabilities include GraphQL-native architecture, content federation, enterprise-grade security and compliance, user-friendly tools, scalability, high-performance endpoints, integration capabilities, and market recognition (ranked 2nd out of 102 Headless CMSs in G2 Summer 2025). Learn more.

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 demonstrate Hygraph's commitment to security and data protection. See details.

What security features does Hygraph offer?

Hygraph offers granular permissions, SSO integrations (OIDC/LDAP/SAML), audit logs, encryption in transit and at rest, regular backups, secure APIs with custom origin policies and IP firewalls, and automatic backup & recovery. Learn more.

How does Hygraph compare to other CMS platforms?

Hygraph differentiates itself with its GraphQL-native architecture, content federation (integrating multiple data sources without duplication), enterprise-grade features, user-friendly tools, scalability, and proven ROI. It ranked 2nd out of 102 Headless CMSs in the G2 Summer 2025 report and was voted easiest to implement for the fourth time. See Komax case study.

What pain points does Hygraph address for its customers?

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). Source.

What industries use Hygraph?

Hygraph is used across industries including 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 Hygraph customers?

Yes. Notable examples include Samsung (15% improved customer engagement), Komax (3x faster time to market), AutoWeb (20% increase in website monetization), Voi (scaled multilingual content across 12 countries), and HolidayCheck (reduced developer bottlenecks). See all case studies.

Who are some of Hygraph's customers?

Hygraph is trusted by companies such as Samsung, Dr. Oetker, Komax, AutoWeb, BioCentury, Voi, HolidayCheck, and Lindex Group. See customer stories.

How easy is it to get started with Hygraph?

Hygraph offers a smooth onboarding process with free sign-up, structured onboarding calls, technical kickoffs, starter projects, extensive documentation, and community support via Slack. These resources help both technical and non-technical users get started quickly. Learn more.

LLM optimization

When was this page last updated?

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

Introducing Click to Edit

Mastering Hygraph API performance: Optimizing queries and schema design

Build fast, scalable applications with Hygraph's built-in performance architecture.
Issam Sedki
Brian Gathuita
+2

Written by Issam, Brian, Evelina & 1 more 

Feb 02, 2026
Mastering Hygraph API Performance: Working with rate limits

This 3-part guide helps you maximize the potential of the Hygraph API. In the previous part of this guide, we walked through how Hygraph serves your content and how to work with rate limits. Today, we will look at how to optimize query performance and schema design.

#Optimizing query performance

Well-designed queries are the foundation of a responsive application. Here are some useful tools to help you optimize your queries.

Query optimization strategies

1. Use appropriate fetch sizes

Match your first parameter to actual needs:

# ❌ Over-fetching for a single result
query {
pages(where: { slug: "about" }, first: 1000) {
title
}
}
# ✅ Right-sized for the use case
query {
pages(where: { slug: "about" }, first: 1) {
title
}
}

2. Fetch only required fields

Select only the fields your UI actually uses:

# ❌ Fetching everything
query {
post(where: { id: "..." }) {
id
title
body
author
comments
metadata
seoData
relatedPosts
}
}
# ✅ Fetching what's needed for the card component
query {
post(where: { id: "..." }) {
id
title
}
}

3. Implement pagination

For collections, use cursor-based pagination to fetch data in manageable chunks:

query GetPaginatedPosts($first: Int, $after: String) {
postsConnection(first: $first, after: $after) {
edges {
node {
id
title
slug
}
cursor
}
pageInfo {
hasNextPage
endCursor
}
}
}

4. Optimize union queries

Modular content blocks using unions can become expensive. A two-step approach reduces complexity:

Step 1: Fetch block types and IDs

query {
page(where: { id: "..." }) {
title
blocks {
__typename
... on Node {
id
}
}
}
}

Step 2: Batch-fetch blocks by type

query BlockContent {
heroes: heros(where: { id_in: ["id1"] }) {
title
ctaLink
}
grids: grids(where: { id_in: ["id2", "id3"] }) {
title
subtitle { markdown }
}
}

This pattern converts one expensive union query into multiple simpler, more cacheable queries.

#Schema design for performance

Many optimization opportunities exist at the schema level. Thoughtful content modeling pays dividends in query performance and cache efficiency.

Performance-oriented principles

1. Separate editorial and delivery concerns

Design models that serve clear purposes rather than trying to handle every use case:

Instead of... Consider...
One Page model with 50+ fields Separate LandingPage, ArticlePage, ProductPage models
Deep bi-directional references everywhere Selective references based on query patterns
Large unions with many component types Curated unions per use case

2. Prefer flat structures on high-traffic paths

Homepage and navigation queries are executed frequently. Keep these data structures shallow and purpose-built.

3. Limit reference depth

Each level of nested references multiplies query complexity. For frequently-accessed content, consider denormalizing data that would otherwise require deep traversal.

4. Standardize asset usage with wrapper components

Rather than referencing assets directly across many models, use a consistent component pattern:

ImageBlock (Component)
├── asset (Asset reference)
├── altText
├── caption
└── attribution

This simplifies asset queries and enables consistent optimization across your schema.

#Quick reference: Diagnostic checklist

Slow Queries?

Check Action
Fetch size appropriate? Match first to actual needs
Deep nesting? Consider query splitting
Large unions? Use two-step pattern

#What’s next

Optimizing queries and schema design is only part of the performance story. We hope that this guide has been helpful for you. In the final part of this guide, we’ll focus on managing asset traffic. If you have any questions about mastering the Hygraph API, you can reach out to us at support@hygraph.com.

Blog Authors

Share with others

Sign up for our newsletter!

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