Skip to content

Commit 8f2e921

Browse files
committed
PHPLIB-810: Document behavior for estimatedDocumentCount
1 parent d620cc0 commit 8f2e921

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

docs/reference/method/MongoDBCollection-estimatedDocumentCount.txt

+9-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,15 @@ Behavior
5050
This method returns an estimate of the count of documents in the collection
5151
using collection metadata, rather than counting the documents or consulting an
5252
index. This method does not take a ``session`` option and cannot be executed
53-
within a transaction.
53+
within a transaction. See
54+
`Count: Behavior <https://www.mongodb.com/docs/manual/reference/command/count/#behavior>`_
55+
in the MongoDB manual for more information.
56+
57+
This method is implemented using the :manual:`count </reference/command/count>`
58+
command. Due to an oversight in versions 5.0.0-5.0.8 of MongoDB, the ``count``
59+
command was not included in version "1" of the Stable API. Applications using
60+
this method with the Stable API are recommended to upgrade their server version
61+
to 5.0.9+ or disable strict mode to avoid encountering errors.
5462

5563
See Also
5664
--------

0 commit comments

Comments
 (0)