Como usar DISTINCT e COUNT no Object Store
Aprenda a agrupar e contar itens usando o conector Object Store.
Usando DISTINCT
[{
$group: {_id: null, uniqueValues: {$addToSet: "$price"}}
}]{
"data": [
{
"uniqueValues": [
699,
1620,
5000
]
}
],
"rowCount": 0
}Usando COUNT
Isto foi útil?