请问如何使用AggregateCommand.max 函数?
发布于 5 年前 作者 zhoujun 222 次浏览 来自 官方Issues

db

.collection(‘moment’)

.aggregate()

.group({

_id: ‘$_id’,

maxScore: $.max(’$reviewCount’)

})

.end()

返回结果

{"event":{}}

但我里面有数据

回到顶部