Method Limit
Limit<TInput>(long)
Creates a $limit stage.
public static PipelineStageDefinition<TInput, TInput> Limit<TInput>(long limit)
Parameters
limit
longThe limit.
Returns
- PipelineStageDefinition<TInput, TInput>
The stage.
Type Parameters
TInput
The type of the input documents.