kmongo / org.litote.kmongo / limit

limit

fun limit(limit: Int): Bson (source)

Creates a $limit pipeline stage for the specified filter

Parameters

limit - the limit

Return
the $limit pipeline stage

Mongodb
.driver.manual reference/operator/aggregation/limit/ $limit