Skip to content

Commit c72b2c1

Browse files
committed
DOCS-1014 add cursor.objsLeftInBatch
1 parent 1b2c5e5 commit c72b2c1

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
========================
2+
cursor.objsLeftInBatch()
3+
========================
4+
5+
.. default-domain:: mongodb
6+
7+
.. method:: cursor.objsLeftInBatch()
8+
9+
The :method:`cursor.objsLeftInBatch()` returns the number of
10+
documents remaining in the current batch.
11+
12+
The MongoDB instance returns its response in batches. The retrieval
13+
of all the documents from a cursor may require multiple batch
14+
responses from the MongoDB instance. When there are no more
15+
documents remaining in the current batch, the cursor will retrieve
16+
another batch to get more documents.

0 commit comments

Comments
 (0)