isIn
open fun <V : Comparable<V>, R : ClosedRange<V>, OpenEndRange<V>> Field<T, V?>.isIn(range: R, type: KType)(source)
infix inline fun <V : Comparable<V>, R : ClosedRange<V>, OpenEndRange<V>> Field<T, V?>.isIn(range: R)(source)
infix inline fun <V : Comparable<V>, R : ClosedRange<V>, OpenEndRange<V>> KProperty1<T, V?>.isIn(range: R)(source)
Selects documents in which this field has a value included in range.
Example
class User(
val name: String,
val age: Int?
)
collection.find {
User::age isIn (25..50)
}Content copied to clipboard
See also
Selects documents in which this field has a value included in range.
Example
class User(
val name: String,
val age: Int?
)
collection.find {
User::age isIn (25..<50)
}Content copied to clipboard