微信小程序
in
# Command.in(value: any[]): Command
支持端:小程序 , 云函数 , Web
查询筛选操作符,表示要求值在给定的数组内。
# 参数
# value: any[]
# 返回值
# Command
# 示例代码
找出进度为 0 或 100 的 todo
const _ = db.command
db.collection('todos').where({
progress: _.in([0, 100])
})
.get({
success: console.log,
fail: console.error
})