push

infix fun <T> KProperty<T>.push(expression: T): BsonField

Gets a field name for a $group operation representing an array of all values that results from applying an expression to each document in a group of documents that share the same group by key.

Return

the field

Parameters

expression

the expression

the expression type

fun <T> push(property: KProperty<Iterable<T>?>, value: T): Bson

Creates an update that adds the given value to the array value of the property.

Return

the update

Parameters

property

the property

value

the value

the value type