reviewAllStats
Retrieve all product review statistics
This page contains
Arguments
first Int | Number of product reviews to return by page. Maximum of 250 |
after String | Returns elements after this specific cursor, example MA== |
orderBy ReviewOrderBy PREVIEW | Product review statistics order information. If not specified, creation date will be use |
Return Fields
ReviewStatsConnection PREVIEW | Connection used to go through a list of product review statistics |
Interactive example
This is an example query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
xxxxxxxxxx
query reviewAllStats($first: Int, $after: String, $orderBy: ReviewOrderBy) {
reviewAllStats(first: $first, after: $after, orderBy: $orderBy) {
totalCount
nodes {
id
productId
reviewCount
}
pageInfo {
startCursor
endCursor
hasPreviousPage
}
}
}
xxxxxxxxxx
{
"first": 5,
"after": "YOUR_AFTER",
"orderBy": {
"field": "CREATION_DATE",
"direction": "ASC"
}
}