Method Any
Any<TDocument, TProjection>(IFindFluent<TDocument, TProjection>, CancellationToken)
Determine if there are any results.
public static bool Any<TDocument, TProjection>(this IFindFluent<TDocument, TProjection> find, CancellationToken cancellationToken = default)
Parameters
findIFindFluent<TDocument, TProjection>The fluent find.
cancellationTokenCancellationTokenThe cancellation token.
Returns
- bool
True if there is at least one document.
Type Parameters
TDocumentThe type of the document.
TProjectionThe type of the projection (same as TDocument if there is no projection).