size

@JvmName(name = "sizeExt")
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


fun <T> size(property: KProperty<T?>, 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

property

the data class property

size

the size of the array