文档例子中bucket应该是bucketAuto
db.collection('items').aggregate()
.bucket({
groupBy: '$price',
buckets: 3,
})
.end()
db.collection('items').aggregate()
.bucket({
groupBy: '$price',
buckets: 3,
})
.end()