Pipeline implementing the $limit stage.
$limit
The context used to generate this pipeline.
Limits the number of elements passed to the next stage to amount.
JSON representation of this pipeline.
Changes the type of the returned document, with no type-safety.
Creates a new pipeline that expands on the current one by adding stage.
Writes the entire pipeline into writer.