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