如题:云数据库的 where()里多个筛选条件如何写成“或”的关系?
db.collection(event.list).where({
area: event.area,
top:'true' //要么以area筛选要么以top筛选
}).get()
如题:云数据库的 where()里多个筛选条件如何写成“或”的关系?
db.collection(event.list).where({
area: event.area,
top:'true' //要么以area筛选要么以top筛选
}).get()
3 个回答
db.command了解一下。
最近也在学习云函数,目前知道的,应该是需要查询两次。
请问下各位,字段自减怎么弄了,API只有自增的。
要js做个逻辑,然后分开写两个where函数