MongoDB request DSL • opensavvy.ktmongo.dsl.options • WithLimit • limit
limit
The maximum number of matching documents to return.
collections.count {
options {
limit(99)
}
}
The maximum number of matching documents to return.
collections.count {
options {
limit(99L)
}
}
Note that not all drivers support specifying a limit larger than an Int
.