IMongoCollectionExtensions.CountDocuments Method |
Name | Description | |
---|---|---|
![]() ![]() | CountDocuments<TDocument>(IMongoCollection<TDocument>, Expression<Func<TDocument, Boolean>>, CountOptions, CancellationToken) |
Counts the number of documents in the collection.
For a fast estimate of the total documents in a collection see EstimatedDocumentCount(EstimatedDocumentCountOptions, CancellationToken).
|
![]() ![]() | CountDocuments<TDocument>(IMongoCollection<TDocument>, IClientSessionHandle, Expression<Func<TDocument, Boolean>>, CountOptions, CancellationToken) |
Counts the number of documents in the collection.
For a fast estimate of the total documents in a collection see EstimatedDocumentCount(EstimatedDocumentCountOptions, CancellationToken).
|