Skip to content
This repository was archived by the owner on Dec 22, 2021. It is now read-only.

Commit d21144c

Browse files
committed
minor: Emphasize in find() docs that cursors are lazy
1 parent 3058e40 commit d21144c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/MongoDB/Collection.pm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,8 @@ sub update_many {
644644
$cursor = $coll->find({ i => { '$gt' => 42 } }, {limit => 20});
645645
646646
Executes a query with a L<filter expression|/Filter expression> and returns a
647-
C<MongoDB::Cursor> object.
647+
B<lazy> C<MongoDB::Cursor> object. (The query is not immediately
648+
issued to the server; see below for details.)
648649
649650
The query can be customized using L<MongoDB::Cursor> methods, or with an
650651
optional hash reference of options.

0 commit comments

Comments
 (0)