---
title: "Use connected GraphQL in a JSS app"
slug: "use-connected-graphql-in-a-jss-app"
abstract: "How to query GraphQL endpoints using connected GraphQL in JSS apps"
---
# Use connected GraphQL in a JSS app

Connected GraphQL is exactly like using any other GraphQL API from a JavaScript application. All JSS sample applications contain GraphQL usage examples.

To use connected GraphQL:

1. Define a [Sitecore GraphQL endpoint](https://doc.sitecore.com/xp/en/developers/hd/21/sitecore-headless-development/sitecore-graphql-api.html "Sitecore GraphQL API") that has the schema you want to query. Generally, the endpoint is defined using the JSS app's config patch file, stored under `/sitecore/config` in the JSS app, but can also be stored with Sitecore.
2. Install and configure a GraphQL client to query the API endpoint.