@@ -1300,7 +1300,8 @@ def find(self, *args, **kwargs):
1300
1300
- `skip` (optional): the number of documents to omit (from
1301
1301
the start of the result set) when returning the results
1302
1302
- `limit` (optional): the maximum number of results to
1303
- return
1303
+ return. A limit of 0 (the default) is equivalent to setting no
1304
+ limit.
1304
1305
- `no_cursor_timeout` (optional): if False (the default), any
1305
1306
returned cursor is closed by the server after 10 minutes of
1306
1307
inactivity. If set to True, the returned cursor will never
@@ -1624,7 +1625,8 @@ def count_documents(self, filter, session=None, **kwargs):
1624
1625
1625
1626
- `skip` (int): The number of matching documents to skip before
1626
1627
returning results.
1627
- - `limit` (int): The maximum number of documents to count.
1628
+ - `limit` (int): The maximum number of documents to count. Must be
1629
+ a positive integer. If not provided, no limit is imposed.
1628
1630
- `maxTimeMS` (int): The maximum amount of time to allow this
1629
1631
operation to run, in milliseconds.
1630
1632
- `collation` (optional): An instance of
@@ -1700,7 +1702,8 @@ def count(self, filter=None, session=None, **kwargs):
1700
1702
1701
1703
- `skip` (int): The number of matching documents to skip before
1702
1704
returning results.
1703
- - `limit` (int): The maximum number of documents to count.
1705
+ - `limit` (int): The maximum number of documents to count. A limit
1706
+ of 0 (the default) is equivalent to setting no limit.
1704
1707
- `maxTimeMS` (int): The maximum amount of time to allow the count
1705
1708
command to run, in milliseconds.
1706
1709
- `collation` (optional): An instance of
0 commit comments