infix fun <T> KProperty<T>.size(size: Int): Bson
Creates a filter that matches all documents where the value of a property is an array of the specified size.
size - the size of the array
size
Return the filter
Mongodb .driver.manual reference/operator/query/size $size