Use connected GraphQL in a JSS app
Version: 22.x
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:
-
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. -
Install and configure a GraphQL client to query the API endpoint.