Fetch dictionary data with the JSS GraphQL Dictionary Service
Version:
You can fetch dictionary data from Sitecore using GraphQL and the JSS GraphQLDictionaryService.
To fetch dictionary data with the JSS GraphQL Dictionary Service:
-
In a
dictionary-service.tsfile, create and configure an instance of theGraphQLDictionaryService: -
In the file where you want to fetch the data, import and use your new dictionary service instance: