MongoDB request DSL • opensavvy.ktmongo.dsl.query • FilterQueryPredicate • lt
lt
abstract fun lt(value: T)
Selects documents for which this field has a value strictly lesser than value
.
Example
class User(
val name: String,
val age: Int?,
)
collection.find {
User::age { lt(18) }
}
External resources
See also