File tree Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -30,13 +30,19 @@ Supported Values
30
30
The behavior of :method:`~cursor.limit()` is undefined for values less
31
31
than -2\ :sup:`31` and greater than 2\ :sup:`31`.
32
32
33
+ Zero Value
34
+ ~~~~~~~~~~
35
+
36
+ A :method:`~cursor.limit()` value of 0 (i.e. :method:`.limit(0)
37
+ <cursor.limit()>`) is equivalent to setting no limit.
38
+
33
39
Negative Values
34
40
~~~~~~~~~~~~~~~
35
41
36
- A :method:`~cursor. limit()` value of 0 (i.e. :method:`. limit(0)
37
- <cursor.limit()>`) is equivalent to setting no limit. A negative
38
- limit is similar to a positive limit, but a negative limit prevents
39
- the creation of a cursor such that only a single batch of results is
40
- returned. As such, with a negative limit, if the limited result set
41
- does not fit into a single batch, the number of documents received
42
- will be less than the limit .
42
+ A negative limit is similar to a positive limit but closes the cursor
43
+ after returning a single :ref:`batch <cursor-batches>` of results. As
44
+ such, with a negative limit, if the limited result set does not fit
45
+ into a single batch, the number of documents received will be less than
46
+ the specified limit. By passing a negative limit, the client indicates
47
+ to the server that it will not ask for a subsequent batch via
48
+ ``getMore`` .
You can’t perform that action at this time.
0 commit comments