Method FirstAsync
FirstAsync<TResult>(IAggregateFluent<TResult>, CancellationToken)
Returns the first document of the aggregate result.
public static Task<TResult> FirstAsync<TResult>(this IAggregateFluent<TResult> aggregate, CancellationToken cancellationToken = default)
Parameters
aggregateIAggregateFluent<TResult>The aggregate.
cancellationTokenCancellationTokenThe cancellation token.
Returns
- Task<TResult>
The fluent aggregate interface.
Type Parameters
TResultThe type of the result.