File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -402,8 +402,7 @@ impl<T> Collection<T> {
402402
403403 /// Gets the number of documents matching `filter`.
404404 ///
405- /// Note that using [`Collection::estimated_document_count`](#method.estimated_document_count)
406- /// is recommended instead of this method is most cases.
405+ /// Note that this method returns an accurate count.
407406 pub async fn count_documents (
408407 & self ,
409408 filter : impl Into < Option < Document > > ,
@@ -414,8 +413,7 @@ impl<T> Collection<T> {
414413
415414 /// Gets the number of documents matching `filter` using the provided `ClientSession`.
416415 ///
417- /// Note that using [`Collection::estimated_document_count`](#method.estimated_document_count)
418- /// is recommended instead of this method is most cases.
416+ /// Note that this method returns an accurate count.
419417 pub async fn count_documents_with_session (
420418 & self ,
421419 filter : impl Into < Option < Document > > ,
You can’t perform that action at this time.
0 commit comments