小程序云开发提示“Unsupported action aggregate”?
wxda2118d7cb86841f
db.collection(‘scores’).aggregate()
.addFields({
totalHomework: $.sum(’$homework’),
totalQuiz: $.sum(’$quiz’)
})
.addFields({
totalScore: $.add([’$totalHomework’, ‘$totalQuiz’, ‘$extraCredit’])
})
.end()