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> {
402
402
403
403
/// Gets the number of documents matching `filter`.
404
404
///
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.
407
406
pub async fn count_documents (
408
407
& self ,
409
408
filter : impl Into < Option < Document > > ,
@@ -414,8 +413,7 @@ impl<T> Collection<T> {
414
413
415
414
/// Gets the number of documents matching `filter` using the provided `ClientSession`.
416
415
///
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.
419
417
pub async fn count_documents_with_session (
420
418
& self ,
421
419
filter : impl Into < Option < Document > > ,
You can’t perform that action at this time.
0 commit comments