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
| Argument | Type | Default | Rule |
|---|---|---|---|
limit | Int | 3 | 1 to 12. Out-of-range values are clamped to the nearest bound. |
minRating | Int | — | 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
| Field | Type | Description |
|---|---|---|
id | String! | Review ID. |
productId | String! | Reviewed product ID. |
productName | String! | Current product name. |
rating | Int! | Rating, 1 to 5. |
title | String | Title. |
content | String! | Review text. |
reviewerName | String | Reviewer name. |
createdOn | DateTime! | Review date. |
Example
query StoreReviews($limit: Int, $minRating: Int) {
storeReviews(limit: $limit, minRating: $minRating) {
id
productName
rating
title
content
reviewerName
createdOn
}
}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 }
}'{
"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
| Code | Cause |
|---|---|
STORE_CONTEXT_REQUIRED | x-Store-Domain is missing or doesn't match a store. |
REST equivalent
GET / returns the same list with the same limit and minRating.
Last updated: