What are the main ways to integrate Hygraph's GraphQL API with web applications?
Hygraph's GraphQL API can be integrated with web applications using several approaches: the native JavaScript Fetch API, Axios, graphql-request, and Apollo Client. Each method allows you to query and manipulate content from Hygraph programmatically. For example, Apollo Client is recommended for enterprise-grade React, Next.js, Angular, Vue, or Svelte applications due to its advanced features like caching, polling, and subscriptions. Note: While Hygraph provides flexibility, developers must manage authentication tokens and API endpoint configuration for each integration. Source
How can I use Hygraph's GraphQL API with static site generators like Hugo and Jekyll?
For Hugo, you can use the resources.GetRemote function to fetch data from Hygraph's GraphQL API and use it within Hugo templates. For Jekyll, the open-source jeql plugin enables you to fetch GraphQL data by configuring the endpoint and queries in your Jekyll project. Note: Official plugins may not be available for all static site generators; community support and maintenance may vary. Source
What options exist for integrating Hygraph with mobile applications?
Hygraph's GraphQL API can be integrated with mobile applications using Apollo iOS for Swift, graphql-flutter for Flutter, Apollo Kotlin for Kotlin/Java, and Apollo Client for React Native. These libraries support features like query execution, caching, and code generation. Note: Integration complexity and feature support may vary by mobile framework; consult the official documentation for each library. Source
Features & Capabilities
What APIs does Hygraph provide for developers?
Hygraph offers several APIs: the GraphQL Content API for querying and manipulating content, the Management API for handling project structure, the Asset Upload API for uploading files, and the MCP Server API for secure AI assistant communication. Each API is documented in detail in the API Reference documentation. Note: Some APIs may require specific permissions or authentication methods. Source
What integrations are available with Hygraph?
Hygraph supports integrations with Digital Asset Management (DAM) systems (Aprimo, AWS S3, Bynder, Cloudinary, Imgix, Mux, Scaleflex Filerobot), hosting and deployment platforms (Netlify, Vercel), Product Information Management (Akeneo), commerce solutions (BigCommerce), and translation/localization (EasyTranslate). For a full list, visit the Hygraph Marketplace. Note: Integration availability and feature depth may vary by platform. Source
What technical documentation is available for Hygraph?
Hygraph provides comprehensive technical documentation, including API references, schema guides, integration tutorials, and AI feature documentation. Key resources include the API Reference, Components Documentation, and AI Agents Documentation. Note: Documentation is updated regularly; some guides may be specific to Hygraph Classic or newer versions. Source
Product Performance & Security
How does Hygraph ensure high performance for content delivery?
Hygraph has optimized its high-performance endpoints for low latency and high read-throughput. The read-only cache endpoint delivers 3-5x latency improvement, and the platform actively measures GraphQL API performance. Developers can find optimization tips in the GraphQL Report 2024. Note: Actual performance may depend on project complexity and integration setup. Source
What security and compliance certifications does Hygraph hold?
Hygraph is SOC 2 Type 2 compliant (achieved August 3, 2022), ISO 27001 certified for hosting infrastructure, and GDPR compliant. The platform also supports granular permissions, SSO integrations, audit logs, encryption in transit and at rest, and regular backups. Note: For the latest certification status, visit the Secure Features page. Source
Use Cases & Implementation
Who can benefit from using Hygraph?
Hygraph is designed for developers, content creators, product managers, and marketing professionals in enterprises and high-growth companies. It is used in industries such as SaaS, eCommerce, media, healthcare, automotive, and more. Notable customers include Samsung, Dr. Oetker, Komax, AutoWeb, BioCentury, Voi, HolidayCheck, and Lindex Group. Note: Teams with highly specialized CMS requirements may need to evaluate feature fit. Source
What business impact can customers expect from using Hygraph?
Customers have achieved 3x faster time-to-market (Komax), a 15% improvement in customer engagement (Samsung), and a 20% increase in website monetization (AutoWeb). Hygraph also supports scaling multilingual content (Voi) and reducing developer bottlenecks (HolidayCheck). Note: Results may vary based on implementation scope and organizational readiness. Source
How long does it take to implement Hygraph and how easy is it to start?
Implementation time varies by project complexity: Top Villas launched in 2 months, Voi migrated from WordPress in 1-2 months, and Si Vale met aggressive deadlines in the initial phase. Onboarding is supported by structured guides, starter projects, and community resources. Note: Large-scale migrations or highly customized integrations may require additional time. Source
Pain Points & Problems Solved
What common pain points does Hygraph address?
Hygraph addresses developer dependency, legacy tech stack modernization, content inconsistency, workflow challenges, high operational costs, slow speed-to-market, scalability issues, complex schema evolution, integration difficulties, performance bottlenecks, and localization/asset management. Note: Some highly specialized workflows may require custom development or third-party tools. Source
Customer Proof & Recognition
What feedback have customers given about Hygraph's ease of use?
Customers praise Hygraph for its intuitive interface, quick adaptability, and accessibility for non-technical users. For example, Sigurður G. (CTO) noted the UI is intuitive, and Charissa K. (Senior CMS Specialist) described it as fast to comprehend and localizable. Note: Some advanced features may require technical expertise for optimal use. Source
What industry recognition has Hygraph received?
Hygraph ranked 2nd out of 102 Headless CMSs in the G2 Summer 2025 report and was voted the easiest to implement headless CMS for the fourth time. Note: Rankings are based on G2 user reviews and may change over time. Source
Limitations & Considerations
What are the limitations or scenarios where Hygraph may not be the best fit?
Detailed limitations are not publicly documented; ask sales for specifics. However, teams with highly specialized CMS requirements, custom workflows, or unique integration needs should evaluate feature fit and consult with Hygraph's technical team. Source
This article will explore ways to consume data from a GraphQL server when developing web and mobile applications with different frontend technologies.
Last updated by Aagam
on Jan 21, 2026
Originally written by Aagam
Over the last decade, GraphQL has become increasingly popular among developers. It was introduced by Facebook in 2015 and quickly gained attention for its flexibility in handling data requests. As we can see in the GraphQL Report 2024, many developers and firms have adopted GraphQL in their tech stack. This means that it’s still gaining traction, and by now, there’s a strong community around it.
This growth has led to the development of many tools and resources to support GraphQL. Today, there are many services that can get you up and running with a production API, plenty of resources, and communities where developers can learn and share their experiences with GraphQL. This support system built over years makes it easier for developers to use GraphQL in their projects and build better apps.
In this article, we will explore ways to consume data from a GraphQL server when developing web and mobile applications with different frontend technologies.
Many options are available to set up the frontend of Web Applications. Javascript-based frameworks are the most popular in this domain, we’ll also explore other frameworks like Hugo, Jekyll and more. We are assuming you have a GraphQL server set up. But, if you don’t, you can spin up one for free within seconds using Hygraph.
Javascript based frameworks
When talking about production-grade frontend web applications, most web apps today use some flavour of React or Vue with a combination of frameworks like Next.js or Nuxt.js. We will go through various client-side options for getting data from a GraphQL server.
Fetch
The native Javascript Fetch API can be used to query a GraphQL endpoint. It is a simple HTTP request to our GraphQL server and needs no additional dependencies.
Axios is a more mature HTTP client with more capabilities than fetch. If your web app already uses the axios library, you can retrieve data from a GraphQL server, as shown below.
Another easy-to-use and lightweight GraphQL client dedicated to making GraphQL requests compared to generic HTTP clients like axios and fetch is graphql-request. It can be considered in small to medium-scale applications where you need a dedicated GraphQL client to fetch the data. It also comes with Typescript support. Here’s how to use it.
console.log('RESPONSE FROM GRAPHQL-REQUEST API CALL', response);
};
return(
// JSX template with onClick event that calls → getUserDetail ...
);
}
Apollo Client
Apollo Client is a robust, battle-tested, mature client for GraphQL on the web that comes with a wide range of features for client-side data fetching. It is the most popular GraphQL client and has support for major frontend frameworks. It enables us to use powerful features like polling & re-fetching data, simplifies managing and configuring client-side cache, helps to use GraphQL fragments, and also supports subscriptions. If you are building a full-blown enterprise application that relies heavily on GraphQL, you might want to consider the Apollo Client.
Since Next.js is a popular production framework, we will discuss how to configure Apollo Client in Next.js. First, let's create a file to initialize and export our Apollo Client.
Finally, inside our components, we can use hooks provided by the Apollo Client to make the GraphQL API request.
import{React, useState }from'react';
import{UserDetail}from'../components/UserDetail';
import{ gql, useLazyQuery }from'@apollo/client';
const query = gql`
query getUserByEmail($email:String!){
nextUser(where:{email:$email}){
firstname
}
}`;
exportdefaultfunctionMyComponent(){
const[email, setEmail]=useState('');
const[getUserDetail,{ loading, error, data }]=useLazyQuery(query,{variables:{ email }});
if(error)return<div>SomethingWentWrong!</div>;
return(
// JSX template with onClick event that calls → getUserDetail ...
);
}
We saw the example of integrating the Apollo Client in React. However, if your app uses something like Angular, Vue or Svelte, you can check out those Apollo libraries here
Hugo
Hugo is a static site generator written in Go. It is good for use cases like static websites and blogs. In Hugo, we can utilize the resources.GetRemote function from the resources package to make GraphQL API requests. This function enables us to fetch remote resource data from APIs and then generates a Resource object that can be used within Hugo templates.
First, let’s prepare the options for our request to the GraphQL API.
Similar to Hugo, Jekyll is a simple, static site generator built with Ruby. It's designed to create fast and easy-to-maintain websites and blogs using Markdown or HTML templates. For Jekyll, there is no official GraphQL client or plugin, but one known open-source plugin is jeql which can be used to fetch data from a GraphQL server, as shown below.
First, we need to add the gem to our Gemfile
gem 'jeql'
Now, we can add this plugin to the Jekyll config file.
_config.yml
plugins:
- jeql
We have to run bundle install to install the dependencies, then we can link GraphQL server via our jeql config.
_config.yml
jeql:
hygraph:
url:"HYGRAPH_URL"
header:
Authorization:"HYGRAPH_AUTH_TOKEN"
Now we need to create a directory named _graphql, add a file named users.json, and add our GraphQL query in there.
Popular mobile development tech stacks include using Swift on iOS, React Native, Kotlin, and Flutter. For most of these technologies, Apollo has published a client-side library, which has received good stars on GitHub and developed into a strong community over time. Hence, we can consider using Apollo’s client-side GraphQL libraries.
Swift
Apollo iOS is an open-source GraphQL client built in Swift. It is one of the best choices for iOS GraphQL clients. It supports the execution of GraphQL operations and caching on the client side.
Depending on your project setup, you should install Apollo iOS and Codegen CLI.
Also, have the GraphQL schema in the graphql/schema.graphqls file.
Now, add your GraphQL query in graphql/GetUser.graphql
query GetUser{
nextUser(where:{id:1}){
firstname
}
}
Use code generation to generate API code to help us execute GraphQL operations.
./apollo-ios-cli generate
Create the Apollo Client
importFoundation
importApollo
let apolloClient =ApolloClient(url:URL(string:"HYGRAPH_URL")!)
Use the GetUserQuery class generated by Apollo iOS with the Apollo Client instance, as shown below.
apolloClient.fetch(query:GetUserByEmailQuery()){ result in
guard let data =try? result.get().dataelse{return}
print(data.nextUser.firstname)
}
Flutter
The most popular GraphQL client in the Flutter community grahql-flutter. It provides support for basic GraphQL operations like executing queries, mutations, subscriptions, and some advanced features like polling and caching.
To integrate it inside our Flutter project, we must add dependencies for the graphql_flutter package.
flutter pub add graphql_flutter
You can now create the GraphQL client and provide it to your widgets as shown below:
// Import the package and initialise the graphql client
We can integrate GraphQL clients in React Native the same way we do in React.js. For instance, if we want to use Apollo Client in React Native, we can use the same docs as Apollo Client for React.
Kotlin
Apollo Kotlin (previously known as Apollo Android) is a GraphQL client that can generate Kotlin and Java models from GraphQL queries and can be used to communicate with a GraphQL server.
This article reviewed ways to consume data from GraphQL servers when developing web and mobile applications. GraphQL developers prefer to work with the mentioned frontend technologies according to the GraphQL Report 2024.
The GraphQL Report compiles best practices from prominent GraphQL power users and expertise from GraphQL experts. Take a look at the report for more in-depth insights on GraphQL.
The GraphQL Report 2024
Statistics and best practices from prominent GraphQL users.
As a Software Engineer, my daily routine revolves around writing scalable applications with clean code & maintaining them. In my spare time, I love to explore software architecture patterns, write tech articles & watch thrillers!
Share with others
Sign up for our newsletter!
Be the first to know about releases and industry news and insights.
This article will explore ways to consume data from a GraphQL server when developing web and mobile applications with different frontend technologies.
Last updated by Aagam
on Jan 21, 2026
Originally written by Aagam
Over the last decade, GraphQL has become increasingly popular among developers. It was introduced by Facebook in 2015 and quickly gained attention for its flexibility in handling data requests. As we can see in the GraphQL Report 2024, many developers and firms have adopted GraphQL in their tech stack. This means that it’s still gaining traction, and by now, there’s a strong community around it.
This growth has led to the development of many tools and resources to support GraphQL. Today, there are many services that can get you up and running with a production API, plenty of resources, and communities where developers can learn and share their experiences with GraphQL. This support system built over years makes it easier for developers to use GraphQL in their projects and build better apps.
In this article, we will explore ways to consume data from a GraphQL server when developing web and mobile applications with different frontend technologies.
Many options are available to set up the frontend of Web Applications. Javascript-based frameworks are the most popular in this domain, we’ll also explore other frameworks like Hugo, Jekyll and more. We are assuming you have a GraphQL server set up. But, if you don’t, you can spin up one for free within seconds using Hygraph.
Javascript based frameworks
When talking about production-grade frontend web applications, most web apps today use some flavour of React or Vue with a combination of frameworks like Next.js or Nuxt.js. We will go through various client-side options for getting data from a GraphQL server.
Fetch
The native Javascript Fetch API can be used to query a GraphQL endpoint. It is a simple HTTP request to our GraphQL server and needs no additional dependencies.
Axios is a more mature HTTP client with more capabilities than fetch. If your web app already uses the axios library, you can retrieve data from a GraphQL server, as shown below.
Another easy-to-use and lightweight GraphQL client dedicated to making GraphQL requests compared to generic HTTP clients like axios and fetch is graphql-request. It can be considered in small to medium-scale applications where you need a dedicated GraphQL client to fetch the data. It also comes with Typescript support. Here’s how to use it.
console.log('RESPONSE FROM GRAPHQL-REQUEST API CALL', response);
};
return(
// JSX template with onClick event that calls → getUserDetail ...
);
}
Apollo Client
Apollo Client is a robust, battle-tested, mature client for GraphQL on the web that comes with a wide range of features for client-side data fetching. It is the most popular GraphQL client and has support for major frontend frameworks. It enables us to use powerful features like polling & re-fetching data, simplifies managing and configuring client-side cache, helps to use GraphQL fragments, and also supports subscriptions. If you are building a full-blown enterprise application that relies heavily on GraphQL, you might want to consider the Apollo Client.
Since Next.js is a popular production framework, we will discuss how to configure Apollo Client in Next.js. First, let's create a file to initialize and export our Apollo Client.
Finally, inside our components, we can use hooks provided by the Apollo Client to make the GraphQL API request.
import{React, useState }from'react';
import{UserDetail}from'../components/UserDetail';
import{ gql, useLazyQuery }from'@apollo/client';
const query = gql`
query getUserByEmail($email:String!){
nextUser(where:{email:$email}){
firstname
}
}`;
exportdefaultfunctionMyComponent(){
const[email, setEmail]=useState('');
const[getUserDetail,{ loading, error, data }]=useLazyQuery(query,{variables:{ email }});
if(error)return<div>SomethingWentWrong!</div>;
return(
// JSX template with onClick event that calls → getUserDetail ...
);
}
We saw the example of integrating the Apollo Client in React. However, if your app uses something like Angular, Vue or Svelte, you can check out those Apollo libraries here
Hugo
Hugo is a static site generator written in Go. It is good for use cases like static websites and blogs. In Hugo, we can utilize the resources.GetRemote function from the resources package to make GraphQL API requests. This function enables us to fetch remote resource data from APIs and then generates a Resource object that can be used within Hugo templates.
First, let’s prepare the options for our request to the GraphQL API.
Similar to Hugo, Jekyll is a simple, static site generator built with Ruby. It's designed to create fast and easy-to-maintain websites and blogs using Markdown or HTML templates. For Jekyll, there is no official GraphQL client or plugin, but one known open-source plugin is jeql which can be used to fetch data from a GraphQL server, as shown below.
First, we need to add the gem to our Gemfile
gem 'jeql'
Now, we can add this plugin to the Jekyll config file.
_config.yml
plugins:
- jeql
We have to run bundle install to install the dependencies, then we can link GraphQL server via our jeql config.
_config.yml
jeql:
hygraph:
url:"HYGRAPH_URL"
header:
Authorization:"HYGRAPH_AUTH_TOKEN"
Now we need to create a directory named _graphql, add a file named users.json, and add our GraphQL query in there.
Popular mobile development tech stacks include using Swift on iOS, React Native, Kotlin, and Flutter. For most of these technologies, Apollo has published a client-side library, which has received good stars on GitHub and developed into a strong community over time. Hence, we can consider using Apollo’s client-side GraphQL libraries.
Swift
Apollo iOS is an open-source GraphQL client built in Swift. It is one of the best choices for iOS GraphQL clients. It supports the execution of GraphQL operations and caching on the client side.
Depending on your project setup, you should install Apollo iOS and Codegen CLI.
Also, have the GraphQL schema in the graphql/schema.graphqls file.
Now, add your GraphQL query in graphql/GetUser.graphql
query GetUser{
nextUser(where:{id:1}){
firstname
}
}
Use code generation to generate API code to help us execute GraphQL operations.
./apollo-ios-cli generate
Create the Apollo Client
importFoundation
importApollo
let apolloClient =ApolloClient(url:URL(string:"HYGRAPH_URL")!)
Use the GetUserQuery class generated by Apollo iOS with the Apollo Client instance, as shown below.
apolloClient.fetch(query:GetUserByEmailQuery()){ result in
guard let data =try? result.get().dataelse{return}
print(data.nextUser.firstname)
}
Flutter
The most popular GraphQL client in the Flutter community grahql-flutter. It provides support for basic GraphQL operations like executing queries, mutations, subscriptions, and some advanced features like polling and caching.
To integrate it inside our Flutter project, we must add dependencies for the graphql_flutter package.
flutter pub add graphql_flutter
You can now create the GraphQL client and provide it to your widgets as shown below:
// Import the package and initialise the graphql client
We can integrate GraphQL clients in React Native the same way we do in React.js. For instance, if we want to use Apollo Client in React Native, we can use the same docs as Apollo Client for React.
Kotlin
Apollo Kotlin (previously known as Apollo Android) is a GraphQL client that can generate Kotlin and Java models from GraphQL queries and can be used to communicate with a GraphQL server.
This article reviewed ways to consume data from GraphQL servers when developing web and mobile applications. GraphQL developers prefer to work with the mentioned frontend technologies according to the GraphQL Report 2024.
The GraphQL Report compiles best practices from prominent GraphQL power users and expertise from GraphQL experts. Take a look at the report for more in-depth insights on GraphQL.
The GraphQL Report 2024
Statistics and best practices from prominent GraphQL users.
As a Software Engineer, my daily routine revolves around writing scalable applications with clean code & maintaining them. In my spare time, I love to explore software architecture patterns, write tech articles & watch thrillers!
Share with others
Sign up for our newsletter!
Be the first to know about releases and industry news and insights.