---
title: "GraphQL support in the JSS React sample app"
slug: "graphql-support-in-the-jss-react-sample-app"
abstract: "Description of GraphQL support and limitation in JSS React applications."
---
# GraphQL support in the JSS React sample app

The sample application supports using Sitecore GraphQL to enable accessing content or other custom data schemas (for example, aggregating an existing set of backend REST services).

Sitecore GraphQL does not come with a disconnected mock service, so it can only operate with a JSS app running in [connected](https://doc.sitecore.com/xp/en/developers/hd/21/sitecore-headless-development/start-a-jss-app-in-connected-mode.html "Start a JSS app in connected mode"), [integrated](https://doc.sitecore.com/xp/en/developers/hd/21/sitecore-headless-development/start-a-jss-app-in-integrated-mode.html "Start a JSS app in integrated mode"), or [headless](https://doc.sitecore.com/xp/en/developers/hd/21/sitecore-headless-development/headless-server-side-rendering-mode.html "Headless server-side rendering mode") application modes. If you require disconnected GraphQL functionality, [graphql-tools](https://github.com/apollographql/graphql-tools) has very powerful GraphQL mocking capabilities.

The remainder of this topic describes using GraphQL in connected mode.

> [!important]
> Do not confuse connected application mode with [connected GraphQL](https://doc.sitecore.com/xp/en/developers/hd/21/sitecore-headless-development/connected-graphql-in-jss-apps.html "Connected GraphQL in JSS apps").

The React sample app uses the [Apollo GraphQL client](https://www.apollographql.com/client). To use the ApolloGraphQL Client, follow the [`react/apollo` documentation](https://www.apollographql.com/docs/react/) for usage and implementation details, but instead of using the `graphql` higher-order component (HOC), use the JSS-specific `GraphQLData` HOC instead. This service has the same API as Apollo but performs JSS-specific operations to make it compatible with Sitecore.

Complete examples of using connected and integrated GraphQL are provided in the folder `src/components` and contain documentation comments. For example, `src/components/graphql/GraphQL-ConnectedDemo` shows you how to use [connected GraphQL](https://doc.sitecore.com/xp/en/developers/hd/21/sitecore-headless-development/connected-graphql-in-jss-apps.html "Connected GraphQL in JSS apps"). Please refer to these samples for implementation details.