From d21144cd2ade70fff8ddcc21913d81fd1a5438a0 Mon Sep 17 00:00:00 2001 From: David Golden Date: Mon, 22 May 2017 08:20:46 -0400 Subject: [PATCH] minor: Emphasize in find() docs that cursors are lazy --- lib/MongoDB/Collection.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/MongoDB/Collection.pm b/lib/MongoDB/Collection.pm index d2cb569c..c094537d 100644 --- a/lib/MongoDB/Collection.pm +++ b/lib/MongoDB/Collection.pm @@ -644,7 +644,8 @@ sub update_many { $cursor = $coll->find({ i => { '$gt' => 42 } }, {limit => 20}); Executes a query with a L and returns a -C object. +B C object. (The query is not immediately +issued to the server; see below for details.) The query can be customized using L methods, or with an optional hash reference of options.