Preview

ReviewStats is in Preview status and is subject to change without notice. For more information about Preview status, see the GraphQL API policy.

ReviewStats

Product review statistics providing rating count, average and count per rating

This page contains

    Fields

    id: ID!
    productId: ID!

    Product ID

    reviewCount: Int!

    Number of reviews for this product

    averageRating: Float!

    Average rating for this product

    ratingBreakdown: [RatingCount!] PREVIEW

    Rating breakdown for this product

    createdOn: DateTime
    lastModified: DateTime

    Implements

    Parent objects of ReviewStats

    ReviewStatsConnection PREVIEW

    Connection used to go through a list of product review statistics

    Queries for ReviewStats

    reviewAllStats PREVIEW

    Retrieve all product review statistics

    reviewStats PREVIEW

    Retrieve product review statistics for a given product