Skip to content

Commit c0b29c4

Browse files
rosemaryydaprahamian
authored andcommitted
docs(estimatedDocumentCount): Documentation for countDocuments mentions estimatedDocumentCount (#2020)
* Documentation for countDocuments MUST mention estimatedDocumentCount * mentions estimatedDocumentCount in documentation for countDocuments and made estimatedDocumentCount a link. Fixes NODE-1981
1 parent 6bcf1e4 commit c0b29c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/collection.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1380,7 +1380,7 @@ Collection.prototype.estimatedDocumentCount = function(options, callback) {
13801380

13811381
/**
13821382
* Gets the number of documents matching the filter.
1383-
*
1383+
* For a fast count of the total documents in a collection see {@link Collection#estimatedDocumentCount estimatedDocumentCount}.
13841384
* **Note**: When migrating from {@link Collection#count count} to {@link Collection#countDocuments countDocuments}
13851385
* the following query operators must be replaced:
13861386
*

0 commit comments

Comments
 (0)