Method EstimatedDocumentCountAsync
EstimatedDocumentCountAsync(EstimatedDocumentCountOptions, CancellationToken)
Returns an estimate of the number of documents in the collection.
public virtual Task<long> EstimatedDocumentCountAsync(EstimatedDocumentCountOptions options = null, CancellationToken cancellationToken = default)
Parameters
options
EstimatedDocumentCountOptionsThe options.
cancellationToken
CancellationTokenThe cancellation token.