infix fun <T> KProperty<T>.avg(expression: T): BsonField
(source)
Gets a field name for a $group operation representing the average of the values of the given expression when applied to all members of the group.
Parameters
Return
the field
Mongodb
.driver.manual reference/operator/aggregation/avg/ $avg