const result = await clc.aggregate()
.match({
activityId,
status: _.in(['Paying', 'Refunding'])
})
.count('pendingOrderCounts')
.end()
const {pendingOrderCounts} = result
console.log('result', result)
console.log('pendingOrderCounts', pendingOrderCounts)
返回值与文档不符。返回值如下: