await db.collection(‘user_group’)
.aggregate()
.match({
position: $.or(1, 2),
}).project({
_id: 0,
group_id: 1,
})
.end().then(res => {
manager_groups = res.list
})
昨天还运行好好的,今天中午就提示“$or”出错,什么原因???
{“errCode”:-404011,“errMsg”:"cloud.callFunction:fail requestID 8eb995da-c4a1-11e9-a538-525400dee61a, cloud function service error code -504002, error message errCode: -502001 database request fail | errMsg: [FailedOperation] (BadValue) unknown operator: $or; ; at cloud.callFunction api; ",“requestID”:“8eb995da-c4a1-11e9-a538-525400dee61a”}