Hygraph is a modern headless content management system (CMS) built with a GraphQL-native architecture. It enables businesses and developers to manage, federate, and deliver content efficiently to any platform, device, or application. Hygraph is designed to unify data and empower impactful digital experiences at scale. Learn more.
Does Hygraph provide a GraphQL API?
Yes, Hygraph offers a powerful GraphQL API that allows you to fetch, manage, and manipulate content efficiently. The API supports queries, mutations, and subscriptions, making it ideal for modern applications. For details, visit the Hygraph API Reference.
What is the benefit of using GraphQL in Flutter applications?
GraphQL enables efficient data retrieval in Flutter applications by allowing developers to specify exactly what data is needed, reducing over-fetching and under-fetching. This results in faster, more responsive apps, especially on devices with limited bandwidth. Source.
What is the recommended GraphQL client for Flutter?
The most popular GraphQL client in the Flutter community is graphql-flutter. It supports queries, mutations, subscriptions, polling, and caching, making it easy to integrate GraphQL endpoints like Hygraph into Flutter apps. Source.
Where can I find a sample application using GraphQL with Flutter?
A sample application that fetches content from a GraphQL endpoint provided by Hygraph is available on GitHub. This demo shows how to build a blog app using Hygraph and the graphql-flutter package. Source.
Where can I find technical documentation for Hygraph?
Comprehensive technical documentation for Hygraph, including API references, integration guides, and onboarding resources, is available at Hygraph Documentation.
Features & Capabilities
What are the key features and capabilities of Hygraph?
Hygraph offers a GraphQL-native architecture, content federation, scalability, and a user-friendly interface. Key capabilities include rapid content delivery, streamlined workflows, and support for integrations with platforms like Netlify, Vercel, Shopify, BigCommerce, AWS S3, Cloudinary, and more. Learn more.
What integrations does Hygraph support?
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), artificial intelligence (AltText.ai), and more. See full list.
How does Hygraph optimize content delivery performance?
Hygraph emphasizes optimized content delivery performance, ensuring rapid distribution and responsiveness. This leads to improved user experience, higher engagement, and better search engine rankings by reducing bounce rates and increasing conversions. Source.
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 details and feature breakdowns, 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. These certifications ensure enterprise-grade security and data protection for all users. Learn more.
What security features does Hygraph offer?
Hygraph provides SSO integrations, audit logs, encryption at rest and in transit, and sandbox environments to protect sensitive data and meet regulatory standards. Details here.
Use Cases & Benefits
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 their tech stack, and brands aiming to scale across geographies or improve development velocity. Source.
What business impact can customers expect from using Hygraph?
Customers can expect significant time savings, streamlined workflows, faster speed-to-market, and enhanced customer experience through consistent and scalable content delivery. These benefits help businesses modernize their tech stack and achieve operational efficiency. Source.
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. See case studies.
Can you share specific customer success stories?
Yes. For example, 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. Explore more success stories.
Pain Points & Solutions
What problems does Hygraph solve?
Hygraph addresses operational pains (reliance on developers for content updates, outdated tech stacks, conflicting needs from global teams, 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 issues, OpenID integration challenges). Details here.
How does Hygraph solve these pain points?
Hygraph provides an intuitive interface for non-technical users, modernizes legacy systems with its GraphQL-native architecture, ensures consistent branding via content federation, streamlines workflows to reduce costs, and offers tools for query management and schema evolution. It also resolves cache and integration issues, supporting scalability and flexibility. Learn more.
What KPIs and metrics are associated with the pain points Hygraph solves?
Key metrics include time saved on content updates, system uptime, speed of deployment, consistency in content across regions, user satisfaction scores, reduction in operational costs, ROI on CMS investment, time to market, maintenance costs, scalability metrics, and performance during peak usage. See more on CMS KPIs.
Do the pain points solved by Hygraph differ by persona?
Yes. For developers, Hygraph reduces boilerplate code and streamlines query management. For content creators and project managers, it empowers non-technical users to update content independently. For business stakeholders, Hygraph lowers operational costs, supports scalability, and accelerates speed to market. Details here.
Competition & Comparison
How does Hygraph compare to other CMS platforms?
Hygraph differentiates itself with its GraphQL-native architecture, content federation, and scalability. It empowers non-technical users, modernizes legacy systems, and streamlines workflows, offering advantages in flexibility, speed-to-market, and cost-effectiveness compared to traditional CMS platforms. Learn more.
Support & Implementation
How easy is it to get started with Hygraph?
Hygraph is designed for easy onboarding, even for non-technical users. Customers can sign up for a free account and use resources like documentation, video tutorials, and onboarding guides. For example, Top Villas launched a new project in just 2 months. Documentation | Case Study.
What training and technical support does Hygraph offer?
Hygraph provides 24/7 support via chat, email, and phone, onboarding sessions for enterprise customers, training resources (video tutorials, documentation, webinars), and access to Customer Success Managers. Contact Hygraph.
What customer service or support is available after purchasing Hygraph?
Hygraph offers extensive customer support, including 24/7 assistance via chat, email, and phone. Enterprise customers receive dedicated onboarding and expert guidance, and all users have access to documentation, tutorials, and the community Slack channel. Contact Hygraph.
How does Hygraph handle maintenance, upgrades, and troubleshooting?
Hygraph provides 24/7 support for maintenance, upgrades, and troubleshooting. Enterprise customers receive dedicated onboarding and expert guidance, and all users can access detailed documentation and the community Slack channel for additional support. Contact Hygraph.
Customer Proof
Who are some of Hygraph's customers?
Hygraph is trusted by leading brands such as Sennheiser, HolidayCheck, Ancestry, Samsung, Dr. Oetker, Epic Games, Bandai Namco, Gamescom, Leo Vegas, and Clayton Homes. See case studies.
What feedback have customers given about Hygraph's ease of use?
Customers have praised Hygraph for its intuitive interface and ease of use, noting that 'even non-technical users can start using it right away.' The UI is described as logical and user-friendly, making it accessible for both technical and non-technical teams. Source.
Guided tutorial on how to use GraphQL with Flutter
Let's learn how to configure and consume a GraphQL endpoint in a Flutter application by creating a blog application.
Written by Asaolu
on Mar 02, 2023
GraphQL is an API query language developed by the Facebook team to improve the traditional REST API pattern by providing a more efficient and flexible way of requesting and retrieving data from an API.
With GraphQL, you can retrieve only the needed data rather than a large payload of irrelevant data. This results in faster and more efficient API requests, particularly on devices with limited network bandwidth.
Flutter is changing how developers approach cross-platform development. Its fast and dynamic suite of widgets allows developers to create stunning and responsive apps for mobile (iOS and Android) and desktop (MacOS and Windows) with a single codebase. It's natural to want to leverage the power of GraphQL when working with a popular and efficient tool like Flutter, and this article will show you how.
This article will cover how to configure and consume a GraphQL endpoint in a Flutter application by creating a blog application. We'll use the GraphQL Flutter package for this operation and Hygraph for our GraphQL api endpoint. Here's a preview of what our final output will look like once we're finished.
As previously stated, graph Flutter provides an easy way to interact with GraphQL in a Flutter application. It has a set of widgets that make it easy to build queries, perform mutations, and handle the results in a Flutter app. As we'll see in later sections of this article, some advantages that make it a popular package include its ease of use and customisation options.
To begin, you must create your GraphQL endpoint. Hygraph offers a simple solution; all you need to do is create a new project, create your content schema, add contents as desired, and your GraphQL endpoint will be generated automatically.
In addition, Hygraph includes an interactive GraphQL playground within the app. You can add a remote source to pull data from other services or manually add data to the Hygraph interface and generate GraphQL endpoints.
To proceed, clone the Hygraph starter blog template, which includes the necessary schema and sample contents for a blog site. Once you’re on this page, you should see the following output; to proceed, click the Create your own button, as shown below.
On the next page, you'd be asked to enter your project details and choose a server region. Fill out the form as desired, then click the Clone now button to continue.
After a few seconds, your project should be ready. Navigate to the Project Settings page on your new project page and select the API Access option, as shown below.
In the API Access page, you can manage the different endpoints for your project and set permissions as desired. However, we are only concerned with the Content API; copy the URL in this field and save it somewhere safe — this is our GraphQL endpoint.
Let’s proceed with creating a new Flutter application by running the command below:
flutter create flutter-graphql
Running this command should scaffold the default button click counter app for us. Next, create a new file named blog_row.dart in the default /lib directory, and paste the code below into it:
import'package:flutter/material.dart';
classBlogRowextendsStatelessWidget{
finalString title;
finalString excerpt;
finalString coverURL;
constBlogRow({
Key? key,
required this.title,
required this.excerpt,
required this.coverURL,
}):super(key: key);
@override
Widgetbuild(BuildContext context){
returnPadding(
padding:constEdgeInsets.all(8.0),
child:Row(
children:[
Expanded(
flex:1,
child: coverURL !=null
?Image.network(coverURL)
:constFlutterLogo(),
),
Expanded(
flex:2,
child:Column(
crossAxisAlignment:CrossAxisAlignment.start,
children:[
Text(
title,
style:Theme.of(context).textTheme.headline6,
),
constSizedBox(
height:10,
),
Text(
excerpt,
style:Theme.of(context).textTheme.bodyText2,
),
],
),
),
],
),
);
}
}
In the preceding code, we initialized a stateless widget called BlogRow, which uses the built-in Row(), Expanded(), and Text() widgets to create a layout displaying a single blog information - including the blog title, excerpt, and cover image.
To proceed, replace the default lib/main.dart file's content with the code below.
import'package:flutter/material.dart';
import'blog_row.dart';
voidmain(){
runApp(constMyApp());
}
classMyAppextendsStatelessWidget{
constMyApp({super.key});
@override
Widgetbuild(BuildContext context){
returnMaterialApp(
title:'Hello World',
theme:ThemeData.light(),
home:Scaffold(
appBar:AppBar(
title:constText(
"Hygraph Blog",
),
),
body:ListView(
children:const[
BlogRow(
title:'Blog 1',
excerpt:'Blog 1 excerpt',
coverURL:'https://picsum.photos/200',
),
BlogRow(
title:'Blog 2',
excerpt:'Blog 2 excerpt',
coverURL:'https://picsum.photos/200',
),
BlogRow(
title:'Blog 3',
excerpt:'Blog 3 excerpt',
coverURL:'https://picsum.photos/200',
),
],
),
),
);
}
}
The main change we made to this file was to import the BlogRow() widget we created earlier. We then used the ListView() widget to render BlogRow three times, displaying different information for each iteration.
If we run our application at this point, we should get the output shown below.
After importing the GraphQL Flutter package, the first step is to configure our GraphQL client and choose a preferred cache method using the GraphQLClient() widget, as shown in the code below. Also, replace the httpLink with the URL you copied earlier from your Hygraph project.
Following that, we must wrap our root widget in a GraphQLProvider widget and pass in the GraphQL client that we created earlier.
...
classMyAppextendsStatelessWidget{
constMyApp({super.key});
@override
Widgetbuild(BuildContext context){
// Wrapping root widget with GraphQLProvider
returnGraphQLProvider(
client: client,
child:MaterialApp(
...
)),
);
}
}
Once this is done, we can begin running GraphQL queries, mutations, or subscriptions from anywhere in our application.
Queries
In GraphQL, queries are used to retrieve data from a server and request specific fields from that data. They allow us to specify exactly what data we require, reducing over- and under-fetching.
The graphql_flutter package includes a Query() widget that allows us to run queries on demand, as shown below.
Here, we defined a query to retrieve available published posts from our Hygraph GraphQL client. We limited the query to only obtaining each post's id, title, excerpt, and cover image URL. Furthermore, we rendered the returned data using the built-in ListView() and our custom BlogRow() widget.
If we run our application at this point, we should get the output shown below.
Mutation
A mutation is an operation that allows you to modify data on a GraphQL client; unlike a query, a mutation is used to create, update, or delete data. The GraphQL Flutter package also includes a Mutation() widget, which works similarly to the Query() widget, as shown below.
As demonstrated above, we created a mutation that updates the author of a given post, and this mutation is triggered whenever we click a button. You'll also notice that the Mutation() widget accepts the same parameters as Query(), with the exception that we're using MutationOptions() to pass the options in this case.
Subscription
Subscriptions in GraphQL are similar to queries, but unlike queries, subscriptions allow us to subscribe to real-time updates from a GraphQL API. The graphql_flutter package also includes a subscription widget, which we can use, as shown below.
Hygraph is the ultimate solution for modern content management, leveraging the power and flexibility of GraphQL. With Hygraph, you can easily manage and distribute your content to any platform, device, or application.
Furthermore, the Hygraph GraphQL API makes it easy to access and manipulate your content in real-time, without needing to manage complex data structures or write extensive code. Its user-friendly interface and streamlined workflows enable you to easily manage your content and collaborate with your team, whether you're a content creator, marketer, or developer.
We've covered how to get started with consuming a GraphQL endpoint in a Flutter application using the GraphQL Flutter package, and we've created a sample application that fetches content from a GraphQL endpoint provided by Hygraph for demonstration purposes. I've also uploaded the simple blog application to GitHub for your convenience.
The GraphQL Report 2024
Statistics and best practices from prominent GraphQL users.
Asaolu Elijah is an experienced software engineer and technical writer. He is passionate about sharing his knowledge and helping others achieve their goals in the tech industry. In his free time, Elijah enjoys gaming and exploring new technologies.
Share with others
Sign up for our newsletter!
Be the first to know about releases and industry news and insights.