Use connected GraphQL in a JSS app

Version:

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 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.

If you have suggestions for improving this article, let us know!