Skip to content

Commit 41f0bb8

Browse files
committed
correct count example
1 parent a9e27ab commit 41f0bb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

static/shell.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,10 @@ <h4>examples</h4>
154154
action: "aggregate",
155155
group: {
156156
_id: 'item',
157+
countItem: {$count: ''}, // count param should be zero value
157158
minPrice: {$min: 'price'},
158159
maxPrice: {$max: 'price'},
159160
sumPrice: {$sum: 'price'},
160-
countPrice: {$count: 'price'},
161161
averagePrice: { $avg: 'price'},
162162
averageAmount: {$avg: { $multiplay: ['quantity','price']}}
163163
},

0 commit comments

Comments
 (0)