From f397363941ff86e0f663a818c8ff2452f8b5bfee Mon Sep 17 00:00:00 2001 From: Valeri Karpov Date: Thu, 4 Jan 2018 07:55:38 -0800 Subject: [PATCH] docs: use useMongooseAggCursor for aggregate docs Fix #2955 --- lib/aggregate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/aggregate.js b/lib/aggregate.js index 40cb9273ceb..a32a7e68f65 100644 --- a/lib/aggregate.js +++ b/lib/aggregate.js @@ -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 * });