Encapsulates the aggregation framework $bucketAuto-operation.
Bucket stage is typically used with Aggregation and $facet. Categorizes incoming documents into a
specific number of groups, called buckets, based on a specified expression. Bucket boundaries are automatically
determined in an attempt to evenly distribute the documents into the specified number of buckets.
We recommend to use the static factory method Aggregation.bucketAuto(String, int) instead of creating
instances of this class directly.
Configures granularity that specifies the preferred number series to use to ensure that the
calculated boundary edges end on preferred round numbers or their powers of 10 and return a new