all

@JvmName(name = "allExt")
infix fun <T> KProperty<Iterable<T>?>.all(values: Iterable<T>): Bson
@JvmName(name = "allvargsExt")
fun <T> KProperty<Iterable<T>?>.all(vararg values: T): Bson

Creates a filter that matches all documents where the value of a property is an array that contains all the specified values.

Return

the filter

Parameters

values

the list of values

the value type

fun <T> all(property: KProperty<Iterable<T>?>, values: Iterable<T>): Bson
fun <T> all(property: KProperty<Iterable<T>?>, vararg values: T): Bson

Creates a filter that matches all documents where the value of a property is an array that contains all the specified values.

Return

the filter

Parameters

property

the data class property

values

the list of values

the value type