Hi,
It would be extremely useful to have aggregation feature on a query like count.
like in :
/stores/search
/stores/{storeId}/labels/search
Usecase:
count number of stores in a chain or number of lables in a store.
Issues:
At the moment, there is no way of getting the number of lables/store.
If i wanna know how many labels are in a store, i should fetch all the labels in multiple call.
suggestion:
add aggregation to the payload:
{
"search": ".....",
"query": .....,
"aggregation": "count",
"sort": "-modificationDate",
"page": 1,
"pageSize": 50,
"includes": "",
.......
}