IMongoCollection<TDocument>.CountDocumentsAsync Method |
Name | Description | |
---|---|---|
![]() | CountDocumentsAsync(FilterDefinition<TDocument>, CountOptions, CancellationToken) |
Counts the number of documents in the collection.
For a fast estimate of the total documents in a collection see .
|
![]() | CountDocumentsAsync(IClientSessionHandle, FilterDefinition<TDocument>, CountOptions, CancellationToken) |
Counts the number of documents in the collection.
For a fast estimate of the total documents in a collection see EstimatedDocumentCountAsync(EstimatedDocumentCountOptions, CancellationToken).
|