kmongo / org.litote.kmongo / bucketAuto

bucketAuto

fun <TExpression> bucketAuto(groupBy: TExpression, buckets: Int, options: BucketAutoOptions = BucketAutoOptions()): Bson (source)

Creates a $bucketAuto pipeline stage

Parameters

groupBy - the criteria to group By

buckets - the number of the buckets

options - the optional values for the $bucketAuto stage

Parameters

Return
the $bucketAuto pipeline stage

Mongodb
.driver.manual reference/operator/aggregation/bucketAuto/ $bucketAuto