Logical Approach:


    { *'$bucketAuto'* : {
        groupBy: *'$beer_ibu'*,
        buckets: *10*,
    } },
] ).pretty()