limit

fun limit(limit: Int): Bson

Creates a $limit pipeline stage for the specified filter

Return

the $limit pipeline stage

Parameters

limit

the limit