containsAll

abstract infix fun <V> Field<T, Collection<V>>.containsAll(values: Collection<V>)(source)
open infix fun <V> KProperty1<T, Collection<V>>.containsAll(values: Collection<V>)(source)

Selects documents where the value of a field is an array that contains all the specified values.

Example

class User(
val grades: List<Int>
)

collection.find {
User::grades containsAll listOf(2, 3, 7)
}

External resources