sum

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

Gets a field name for a $group operation representing the sum of the values of the given expression when applied to all members of the group.

Return

the field

Parameters

expression

the expression

the expression type