size

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.

Return

the filter

Parameters

size

the size of the array