median
fun <InExpression> median(property: KProperty<*>, inExpression: InExpression, method: QuantileMethod): BsonField
Returns a combination of a computed field and an accumulator that generates a BSON {@link org.bson.BsonType#DOUBLE Double } representing the median value computed from the given {@code inExpression} within a group.
Return
The requested {@link BsonField}. @mongodb.driver.manual reference/operator/aggregation/median/ $median @mongodb.server.release 7.0
Parameters
property
The data class property computed by the accumulator.
in Expression
The input expression.
method
The method to be used for computing the median.