push

fun <TExpression> push(property: KProperty<*>, expression: TExpression): 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 @mongodb.driver.manual reference/operator/aggregation/push/ $push

Parameters

property

The data class property

expression

the expression

the expression type