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

size

infix fun <T> KProperty<T>.size(size: Int): Bson (source)

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

Parameters

size - the size of the array

Return
the filter

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