微信小程序
where
# Collection.where(condition: Object): Collection
支持端:小程序 , 云函数 , Web
指定查询条件,返回带新查询条件的新的集合引用
# 参数
# condition: Object
查询条件
# 返回值
# Collection
# 示例代码
const _ = db.command
const result = await db.collection('todos').where({
price: _.lt(100)
}).get()