All Release Notes
Added GraphQL support for ReviewRatingStatistics
17 December 2019
Enhancement
GraphQLProduct Catalog
It is now possible to retrieve ReviewRatingStatistics on Products and Channels via GraphQL API.
- [GraphQL API] Added the following types to the GraphQL schema:
ReviewRatingStatistics. - [GraphQL API] Changed the
Channeltype:- Added the
reviewRatingStatisticsfield to theChanneltype.
- Added the
- [GraphQL API] Changed the
Producttype:- Added the
reviewRatingStatisticsfield to theProducttype.
- Added the
Introduced the following changes to the GraphQL schema (in SDL format):
extend type Channel {reviewRatingStatistics: ReviewRatingStatistics}extend type Product {reviewRatingStatistics: ReviewRatingStatistics}type ReviewRatingStatistics {averageRating: Float!highestRating: Int!lowestRating: Int!count: Long!ratingsDistribution: Json!}