bucketAuto

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

Creates a $bucketAuto pipeline stage

Return

the $bucketAuto pipeline stage

Parameters

the groupBy expression type
groupBy

the criteria to group By

buckets

the number of the buckets

options

the optional values for the $bucketAuto stage