From eebfb36a2321c9512beb3f6fb0227f9a7fa9fdeb Mon Sep 17 00:00:00 2001 From: Valeri Karpov Date: Thu, 1 Nov 2018 16:00:24 -0400 Subject: [PATCH] docs(query): add note re: cursor() Re: #7188 --- lib/query.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/query.js b/lib/query.js index 78a7ae905e8..1664d0b982c 100644 --- a/lib/query.js +++ b/lib/query.js @@ -1761,6 +1761,9 @@ Query.prototype._find = function(callback) { /** * Find all documents that match `selector`. The result will be an array of documents. * + * If there are too many documents in the result to fit in memory, use + * [`Query.prototype.cursor()`](api.html#query_Query-cursor) + * * ####Example * * // Using async/await