What is Hygraph's GraphQL Content API and what makes it unique?
Hygraph's GraphQL Content API is a powerful, flexible API designed for modern content management. It stands out due to its intuitive design, support for advanced GraphQL features (such as fragments, directives, and union types), and its ability to handle complex content modeling, localization, and asset transformations. The API is approachable for both GraphQL newcomers and experienced developers, mirroring your content structure and relationships for easy querying and manipulation. [Source]
How does Hygraph's API support advanced asset transformations?
Hygraph's API allows you to perform advanced asset transformations directly within your GraphQL queries. For example, you can generate thumbnails or resize images on the fly without needing to process images manually. This is achieved by specifying transformation parameters in your query, simplifying your codebase and leveraging Hygraph's built-in capabilities. [Source]
Does Hygraph support content localization through its API?
Yes, Hygraph's GraphQL Content API treats localization as a first-class feature. You can request content in multiple locales within a single query, and Hygraph will automatically provide fallback values if a translation is missing. This makes it easy to serve global audiences with region-specific content. [Source]
What types of data and content models does Hygraph's API support?
Hygraph extends the default GraphQL scalar types with its own, such as Rich Text, Markdown, Location, and JSON. It also supports polymorphic relations using union types, allowing you to model complex content structures (e.g., pages with mixed content blocks like text, images, and videos). This flexibility enables advanced content modeling for a variety of use cases. [Source]
Can I manage my schema programmatically with Hygraph?
Yes, Hygraph provides a Management SDK that allows developers to programmatically manage schemas, including creating models, adding fields, configuring validation, and setting up relationships. This enables automation and integration with development workflows. [Source]
Does Hygraph support content mutations (create, update, delete) via API?
Yes, Hygraph's GraphQL API supports full CRUD operations, allowing you to create, read, update, and delete content entries programmatically. This enables a wide range of use cases, from user-generated content to automated updates by third-party systems. [Source]
What developer tools and documentation does Hygraph provide?
Hygraph offers comprehensive documentation, including clear explanations, step-by-step tutorials, and a detailed API reference. Developers can use the integrated GraphiQL playground within Hygraph Studio to explore the API schema, execute queries and mutations, and test features in real time. [Documentation]
What integrations are available with Hygraph?
Hygraph supports a wide range of integrations, including hosting and deployment (Netlify, Vercel), eCommerce (BigCommerce, commercetools, Shopify), localization (Lokalise, Crowdin, EasyTranslate, Smartling), digital asset management (Aprimo, AWS S3, Bynder, Cloudinary, Mux, Scaleflex Filerobot), personalization and AB testing (Ninetailed), AI (AltText.ai), and more. [Integrations]
Features & Capabilities
What are the key features of Hygraph?
Key features of Hygraph include a GraphQL-native architecture, content federation, scalability, advanced localization, asset transformation, programmatic schema management, and a user-friendly interface. Hygraph also offers robust security, integrations, and developer tools. [Features]
How does Hygraph ensure high performance and optimized content delivery?
Hygraph is optimized for rapid content delivery, which improves user experience, engagement, and search engine rankings. Its architecture ensures fast content distribution and responsiveness, helping reduce bounce rates and increase conversions. [Source]
What security and compliance certifications does Hygraph have?
Hygraph is SOC 2 Type 2 compliant, ISO 27001 certified, and GDPR compliant. It offers enterprise-grade security features such as SSO integrations, audit logs, encryption at rest and in transit, and sandbox environments to protect sensitive data and meet regulatory standards. [Security Features]
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 pricing page.
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. It is especially beneficial for modern software companies, enterprises modernizing their tech stack, and brands scaling across geographies or re-platforming from traditional solutions. [Source]
What business impact can customers expect from using Hygraph?
Customers can expect significant time savings, faster speed-to-market, improved customer experience, and operational efficiency. For example, Komax achieved a 3X faster time to market, and Autoweb saw a 20% increase in website monetization. [Customer Stories]
What industries are represented in Hygraph's case studies?
Hygraph's case studies span industries such as 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. [Case Studies]
Can you share specific customer success stories using Hygraph?
Yes. Komax achieved a 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. More stories are available on the customer stories page.
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. [Case Studies]
Ease of Use & Implementation
How easy is it to get started with Hygraph?
Hygraph is designed for ease of use, with an intuitive interface praised by customers for being accessible to both technical and non-technical users. You can sign up for a free-forever account and access comprehensive documentation, video tutorials, and onboarding guides. For example, Top Villas launched a new project in just 2 months. [Documentation]
What support and training 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 detailed documentation, video tutorials, webinars, and a community Slack channel. [Contact]
How does Hygraph address the pain points of different user personas?
For developers, Hygraph reduces boilerplate code and streamlines query management. For content creators and project managers, it provides an intuitive interface for independent content updates. For business stakeholders, it lowers operational costs, supports scalability, and accelerates project delivery. [Source]
What KPIs and metrics are associated with the pain points Hygraph solves?
Key KPIs include time saved on content updates, system uptime, content consistency across regions, user satisfaction scores, reduction in operational costs, time to market, maintenance costs, and scalability metrics. For more, see the Hygraph blog on CMS KPIs.
Competition & Differentiation
How does Hygraph differentiate itself from other CMS platforms?
Hygraph differentiates itself with its GraphQL-native architecture, content federation, scalability, and tailored solutions for operational, financial, and technical pain points. Its intuitive interface, advanced localization, and programmatic schema management set it apart from traditional and other headless CMS platforms. [Source]
Technical Requirements & Developer Experience
What is the developer experience like with Hygraph?
Hygraph offers a great developer experience with features like an integrated GraphiQL playground, predictable naming conventions, comprehensive documentation, and extensibility through webhooks and an app marketplace. Developers can explore the API schema in real time and test queries and mutations directly in the browser. [Source]
Jamie Barton shares his firsthand experience with Hygraph, diving into the features that make it his top choice for every project.
Written by Jamie
on Nov 28, 2024
In my journey through using and implementing various content management systems over the years, Hygraph stands out from the crowd, every single time.
Hygraph offers a unique blend of power, flexibility, and ease of use that I haven’t found in other solutions. Its GraphQL Content API is not just another headless CMS offering – it’s a game changer that has redefined my approach to content management and delivery.
In this post, I’ll share my firsthand experience with Hygraph, diving into the features that make it my top choice for every project. From its intuitive API design that feels natural even to GraphQL newcomers, to advanced capabilities like localization and asset transformation, I’ll show you why Hygraph has consistently outperformed other options in the market.
One of the standout features of Hygraph’s GraphQL Content API is its remarkable API design. Hygraph has managed to create an API that feels familiar and approachable, even for those new to GraphQL.
While GraphQL itself can be intimidating for newcomers, Hygraph’s implementation feels natural and easy to grasp. The APIs structure mirrors the content fields and relationships defined by you, making it intuitive to query and manipulate data.
Here’s what it looks like to query content to fetch a blog post:
queryGetProduct($sku:String!){
product(where:{sku:$sku}){
name
manufacturer{
name
}
description{
text
}
}
}
Even if you’re new to GraphQL, this query is readable and self-explanatory. You’re asking for a product with a specific slug, and you want its name, the manufacturer's name, and the description text.
The true power of a CMS comes when authors can deal with multiple versions, including draft and published articles. Hygraph allows developers to create multiple content stages, and entries can be published to a specific stage, with the ability to compare and rollback if necessary.
Here’s how easy it is to query from the DRAFT content stage, often useful for staging environments for editors to review and approve/reject entries.
You’ll read in this article many other great features of Hygraph, but the one that stands out the most is its attention to the developer experience (DX).
Step-by-step tutorials and guides for common tasks (as well as integrations with third party services)
Detailed API Reference documentation for all things GraphQL (in addition to the “self documenting” GraphQL Playground)
And much more!
Playground environment
If you’ve worked with another GraphQL API before, then you’ll be familiar with GraphiQL. Hygraph integrates this inside its “Studio” interface so developers can get started using the API using an interface that is familiar to them.
GraphiQL allows you to:
Explore the API schema is real time (see schema changes updated instantly)
Test against content stages and localization features
Predictable naming conventions
Naming things is hard. There are many ways to create and expose entities as GraphQL, but Hygraph takes a simple approach with its naming. This includes:
Clear and descriptive names for types, fields and operations – you can also override naming where needed
Enforces validation for camelCase names for any fields you override, as well as using a strict PascalCase for type names that is common amongst good GraphQL schema design
Intuitive pluralization for collection queries, e.g. article vs articles
Webhooks
Hygraph doesn’t get in your way when you need to process additional logic when something occurs inside the CMS. You can use webhooks to trigger your own code when something is published, unpublished, moved from one content stage to another, deleted, and much more.
Extensibility
I wouldn’t expect a CMS to solve every possible use case or problem. This is why Hygraph has an escape hatch for developers and editors who need more from the Hygraph Studio.
Hygraph provides an App Marketplace that is growing with things you can install to enhance your editors experience. Whether you need to translate some content on the fly, or integrate your own Digital Asset Management platform, Hygraph has you covered.
Content management isn’t just about text – it’s also about images, videos, and other media assets. Hygraph shines in this area with its advanced asset transformation features, all accessible through the GraphQL API.
Creating thumbnails, which is a common requirement, is remarkably straightforward with Hygraph. You don’t need to worry about processing or transforming images yourself, instead you can generate the exact thumbnail you need at query time:
query {
asset(where: { id: "..." }) {
url
thumbnailUrl: url(
transformation: {
image: {
resize: { width: 100, height: 100, fit: clip }
}
}
)
}
}
In this query, we’re fetching both the original url of the asset, and a transformed thumbnail url, prefixed using GraphQL Aliases. This approach simplifies your codebase and leverages the power of Hygraph.
The Hygraph GraphQL API embraces the full power of GraphQL, including support for Fragments, and Directives. Fragments are commonly used to avoid repeating yourself in cases like this:
But the true power of GraphQL Fragments comes when you use the Relay Specification, which Hygraph supports out of the box whereby you specify data dependencies for components using GraphQL Fragments.
It’s important for websites that serve a global audience to also serve content in a language that is specific to that country or region. Hygraph’s GraphQL Content API makes localization a first class property when authoring content, and querying content.
One of the many super powers of GraphQL is its ability to accept arguments for the fields you request:
This is incredibly useful when requesting content in multiple locales:
Hygraph is smart enough to know that if you forget to add the translated content for a field, it will fallback to the system default you have configured.
Those familiar with GraphQL will know of its limited scalar types – String, Int, Float, Boolean, and ID.
Hygraph extends the default GraphQL scalar types and provides its own – Rich Text, Markdown, Location, JSON, and many more.
Developers interacting with Rich Text returned from the API would be pretty disappointed if the output was only available as HTML. It would require a lot of parsing and transforming of HTML entities to change the appearance of content.
Instead, Hygraph provides a Rich Text type that gives developers the Rich Text as an Abstract Syntax Tree (AST) so how Rich Text is presented is up to the developer.
Hygraph takes it even further by allowing users to embed content entries that it already knows about stored in the CMS. This means that if users are describing a product, or a product add-on, the exact product details (images, price, etc.) can be represented alongside the text.
Rendering the AST with your own customizations is made really easy by using the open source Rich Text Rendering libraries.
Simplified polymorphic relations
In traditional database design, managing relationships between multiple types of entities often requires complex “through” or “pivot” tables for true normalized schemas.
Hygraph leverages GraphQL’s union types to implement polymorphism. This approach allows you to create fields that can contain multiple types of content, providing incredible flexibility in your content modeling.
For example, let’s imagine you build a website that features different types of content blocks – text, images, and videos. With Hygraph, you can easily model this:
type Page {
title: String!
content: [ContentBlock!]!
}
union ContentBlock = TextBlock | ImageBlock | VideoBlock
type TextBlock {
text: String!
}
type ImageBlock {
image: Asset!
caption: String
}
type VideoBlock {
video: Asset!
duration: Int!
}
In this model, a Page can have multiple ContentBlock items, each of which could be a TextBlock, ImageBlock, or VideoBlock. Fetching this from the CMS via GraphQL is just as easy:
query {
page(where: { id: "page123" }) {
title
content {
__typename
... on TextBlock {
text
}
... on ImageBlock {
image {
url
}
caption
}
... on VideoBlock {
video {
url
}
duration
}
}
}
}
The __typename response that is returned inside each content block is perfect for matching the required frontend component.
It’s also worth noting that relations can be configured in unidirectional and bidirectional references. Unidirectional is perfect for one-way references where only one side is aware of the other, whereas bidirectional allows both entities to know each other.
While many CMS APIs focus solely on content delivery, Hygraph takes it a step further by providing full capabilities to Create, Read, Update, and Delete content entries through its high performance GraphQL API.
mutation {
createArticle(data: {
title: "New Article",
content: { text: "This is the content of the new article." }
}) {
id
title
}
}
From user-generated content to automated content updates by third party events. This feature alone increases the amount of use cases that a single CMS can cover.
While Hygraph boasts a pretty nice “no code” UI for managing schema, it does give developers the tools to use code to control everything below the Content API.
The Management SDK allows developers to programmatically hook into managing the schema via code.
Here’s how easy it is to use code to create a new model Page:
client.createModel({
apiId:'Page',
apiIdPlural:'Pages',
displayName:'Page',
});
It’s also just as easy to add fields, configure validation, and add relations:
Hygraph’s GraphQL Content API stands out in the crowded field of content management solutions due to its combination of power, flexibility, and ease of use.
From its intuitive design and comprehensive GraphQL feature support to its advanced capabilities like polymorphic relations, localization, and programmatic schema management. Hygraph provides a complete solution for modern content management.
The API’s support for mutations and custom primitive types, including types you connect from third party sources, and its own powerful asset transformation features, makes it suitable for a wide range of applications beyond simple content delivery.
Whether you’re building a multilingual education resource, a complex e-commerce platform, or a dynamic web application, Hygraph’s GraphQL Content API provides the tools you need to manage and deliver your content effectively.
By choosing Hygraph, you’re not just selecting a content API – you’re opting for a forward-thinking approach to content management that can grow and adapt with your needs.
Blog Author
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.