fun limit(limit: Int): Bson
Creates a $limit pipeline stage for the specified filter
limit - the limit
limit
Return the $limit pipeline stage
Mongodb .driver.manual reference/operator/aggregation/limit/ $limit