nin

@JvmName(name = "ninExt")
infix fun <T> KProperty<T?>.nin(values: Iterable<T?>): Bson
@JvmName(name = "ninIterableExt")
infix fun <T> KProperty<Iterable<T>?>.nin(values: Iterable<T?>): Bson

Creates a filter that matches all documents where the value of a property does not equal any of the specified values or does not exist.

Return

the filter

Parameters

values

the list of values

the value type

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

Creates a filter that matches all documents where the value of a property does not equal any of the specified values or does not exist.

Return

the filter

Parameters

property

the data class property

values

the list of values

the value type