云开发数据库数组字段,多个值in怎么查?
https://developers.weixin.qq.com/miniprogram/dev/wxcloud/guide/database/query-array-object.html
如文档中:
集合下一条记录:
{
"numbers": [10, 20, 30]
}
如果查询包含20的,可以用
db.collection('todos').where({
numbers: 20
}).get()
请问如果查询包含10且包含20,或者查询包含10或者包含20的数据,应该怎么查呢?
