Skip to content

Commit f397363

Browse files
committed
docs: use useMongooseAggCursor for aggregate docs
Fix #2955
1 parent 4a54649 commit f397363

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/aggregate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ Aggregate.prototype.option = function(value) {
574574
*
575575
* ####Example:
576576
*
577-
* var cursor = Model.aggregate(..).cursor({ batchSize: 1000 }).exec();
577+
* var cursor = Model.aggregate(..).cursor({ batchSize: 1000, useMongooseAggCursor: true }).exec();
578578
* cursor.each(function(error, doc) {
579579
* // use doc
580580
* });

0 commit comments

Comments
 (0)