in

@JvmName(name = "inExt")
infix fun <T> KProperty<T?>.in(values: Iterable<T?>): Bson
@JvmName(name = "inIterableExt")
infix fun <T> KProperty<Iterable<T>?>.in(values: Iterable<T?>): Bson

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

Return

the filter

Parameters

values

the list of values

the value type

fun <T> in(property: KProperty<T?>, values: Iterable<T?>): Bson
@JvmName(name = "inIterable")
fun <T> in(property: KProperty<Iterable<T>?>, values: Iterable<T?>): Bson

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

Return

the filter

Parameters

property

the data class property

values

the list of values

the value type