以下代码运行报错: JQL语法暂不支持使用更新操作符
await db.collection('class')
.where({
_id: db.command.in(incList) // 查询所有ID对应的课件详情
}).update({
used:db.command.inc(1)
});
以下代码执行没问题
await db.collection('class')
.where({
_id: db.command.in(incList) // 查询所有ID对应的课件详情
}).update({
used:1
});
systhinker (作者)
是的,这是什么奇怪的规定
2024-11-16 15:18
DCloud_uniCloud_VK
回复 systhinker: 前端操作用的就是JQL, JQL暂不支持使用更新操作符
2024-11-18 20:23