How to use DISTINCT and COUNT in the Object Store
Learn how to group and count items using the Object Store connector.
Using DISTINCT
[{
$group: {_id: null, uniqueValues: {$addToSet: "$price"}}
}]{
"data": [
{
"uniqueValues": [
699,
1620,
5000
]
}
],
"rowCount": 0
}Using COUNT
Was this helpful?