Skip to content

Commit

Permalink
Merge pull request #11191 from enieber/patch-1
Browse files Browse the repository at this point in the history
Update aggregate.js
  • Loading branch information
vkarpov15 committed Jan 7, 2022
2 parents f5fde77 + fd82b90 commit 7291b7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/aggregate.js
Expand Up @@ -892,7 +892,7 @@ Aggregate.prototype.collation = function(collation) {
* const res = await Model.aggregate().facet({
* books: [{ groupBy: '$author' }],
* price: [{ $bucketAuto: { groupBy: '$price', buckets: 2 } }]
* });
* });
*
* // Output: { books: [...], price: [{...}, {...}] }
*
Expand Down

0 comments on commit 7291b7e

Please sign in to comment.