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

elemMatch

infix fun <T> KProperty<Iterable<T>?>.elemMatch(filter: Bson): Bson (source)

Creates a filter that matches all documents containing a property that is an array where at least one member of the array matches the given filter.

Parameters

filter - the filter to apply to each element

Return
the filter

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