We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 093dfd3 commit 87f0e87Copy full SHA for 87f0e87
source/reference/aggregation.txt
@@ -98,6 +98,14 @@ find the total number of documents which have the exact array
98
99
count = coll.count({ 'categories' => [ 'Chinese', 'Seafood' ] })
100
101
+.. note::
102
+
103
+ The ``count`` method is not the same as the ``countDocuments``
104
+ method and may not support the same filters. ``countDocuments`` uses the
105
+ ``$match`` stage of the aggregation pipeline to filter documents. To learn more
106
+ about limitations of the ``$match`` stage, see :manual:`$match Restrictions </reference/operator/aggregation/match/#restrictions>`
107
+ in the MongoDB Server manual.
108
109
Distinct
110
~~~~~~~~
111
0 commit comments