Skip to content

Commit

Permalink
docs: use useMongooseAggCursor for aggregate docs
Browse files Browse the repository at this point in the history
Fix #2955
  • Loading branch information
vkarpov15 committed Jan 4, 2018
1 parent 4a54649 commit f397363
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/aggregate.js
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ Aggregate.prototype.option = function(value) {
*
* ####Example:
*
* var cursor = Model.aggregate(..).cursor({ batchSize: 1000 }).exec();
* var cursor = Model.aggregate(..).cursor({ batchSize: 1000, useMongooseAggCursor: true }).exec();
* cursor.each(function(error, doc) {
* // use doc
* });
Expand Down

0 comments on commit f397363

Please sign in to comment.