Skip to content
Queries

storeReviews

The latest approved reviews across the store, for testimonial sections.

storeReviews returns the latest approved reviews across the whole store, with the name of each reviewed product. Use it for testimonial sections. For one product's reviews, use productReviews or the reviews field of ProductSummary.

storeReviews(limit: Int, minRating: Int): [StorefrontStoreReviewDto!]!

Arguments

ArgumentTypeDefaultRule
limitInt31 to 12. Out-of-range values are clamped to the nearest bound.
minRatingInt—Only reviews with that rating or higher.

The list goes from newest to oldest and only includes reviews of products still in the catalog.

StorefrontStoreReviewDto

FieldTypeDescription
idString!Review ID.
productIdString!Reviewed product ID.
productNameString!Current product name.
ratingInt!Rating, 1 to 5.
titleStringTitle.
contentString!Review text.
reviewerNameStringReviewer name.
createdOnDateTime!Review date.

Example

StoreReviews.graphql
query StoreReviews($limit: Int, $minRating: Int) {
  storeReviews(limit: $limit, minRating: $minRating) {
    id
    productName
    rating
    title
    content
    reviewerName
    createdOn
  }
}
Terminal
curl --request POST "https://storefront.ecomiq.pe/graphql" \
  --header "Content-Type: application/json" \
  --header "x-Store-Domain: my-store" \
  --data-binary '{
    "query": "query StoreReviews($limit: Int, $minRating: Int) { storeReviews(limit: $limit, minRating: $minRating) { id productName rating title content reviewerName createdOn } }",
    "variables": { "limit": 6, "minRating": 4 }
  }'
Response
{
  "data": {
    "storeReviews": [
      {
        "id": "7204558912004325999",
        "productName": "Mug",
        "rating": 5,
        "title": "Excellent",
        "content": "Arrived fast and well packed.",
        "reviewerName": "Ana",
        "createdOn": "2026-10-25T21:06:35Z"
      }
    ]
  }
}

Errors

CodeCause
STORE_CONTEXT_REQUIREDx-Store-Domain is missing or doesn't match a store.

REST equivalent

GET /v1/reviews returns the same list with the same limit and minRating.

Last updated:

On this page