kmongo / org.litote.kmongo / kotlin.reflect.KProperty / in

in

infix fun <T> KProperty<T?>.in(values: Iterable<T?>): Bson (source)
infix fun <T> KProperty<T>.in(expression: String): Bson (source)
@JvmName("inArray") infix fun <T> KProperty<Iterable<T>?>.in(values: Iterable<T?>): Bson (source)

Creates a filter that matches all documents where the value of a property equals any value in the list of specified values.

Parameters

values - the list of values

Parameters

Return
the filter

Mongodb
.driver.manual reference/operator/query/in $in