Skip to content

Commit fcfa39f

Browse files
author
Chris Cho
authored
DOCSP-22465: admonition on stable API and estimatedDocumentCount method (#232)
* DOCSP-22465: admonition on stable API and estimatedDocumentCount method
1 parent dd26f3d commit fcfa39f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

source/usage-examples/count.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,15 @@ When you call the ``countDocuments()`` method, you can optionally pass a
2727
**query filter** parameter. You cannot pass any parameters when you call
2828
``estimatedDocumentCount()``.
2929

30+
.. important:: Stable API V1 and MongoDB Server Issue
31+
32+
If you are using the Stable API ``V1`` with the "strict" option and a
33+
MongoDB server version between 5.0.0 and 5.0.8 inclusive, method calls to
34+
``estimatedDocumentCount()`` may error due to a server bug.
35+
36+
Upgrade to MongoDB server 5.0.9 or set the Stable API "strict" option to
37+
``false`` to avoid this issue.
38+
3039
You can also pass an optional parameter to either of these methods to
3140
specify the behavior of the call:
3241

0 commit comments

Comments
 (0)