MongoCollection.estimatedDocumentCount

ulong estimatedDocumentCount(EstimatedDocumentCountOptions options = EstimatedDocumentCountOptions.init)

Returns the count of all documents in a collection or view.

Throws Exception if a DB communication error occurred.

See Also