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.
count_documents
1 parent c72830c commit 293fdc3Copy full SHA for 293fdc3
src/action/count.rs
@@ -39,9 +39,12 @@ where
39
}
40
41
42
- /// Gets the number of documents.
+ /// Gets the number of documents. This method returns an accurate count.
43
///
44
- /// Note that this method returns an accurate count.
+ /// Certain query operators cannot be used in the filter provided to this method, including
45
+ /// `$where` and `$near`. See the documentation for the `$match` aggregation pipeline stage for
46
+ /// full details on these restrictions:
47
+ /// https://www.mongodb.com/docs/manual/reference/operator/aggregation/match/#restrictions
48
49
/// `await` will return d[`Result<u64>`].
50
#[deeplink]
0 commit comments