db.command.lt
查询筛选条件,表示字段需小于指定值。
方法签名:
function lt(value: number): Command
示例代码
找出进度小于或等于 50 的 todo
const _ = db.command
db.collection('todos').where({
progress: _.lt(50)
})
.get({
success: console.log,
fail: console.error
})
本文档使用 BookStack 构建