# db.command.lte
Query filter, indicating that the value of the field is required to be less than or equal to the specified value.
Method signature:
function lte(value: number): Command
Sample code
Find out the todos whose progress is less than or equal to 50
const cloud = require('wx-server-sdk')
cloud.init()
const db = cloud.database()
const _ = db.command
exports.main = async (event, context) => {
try {
return await db.collection('todos').where({
progress: _.lte(50)
})
.get()
} catch(e) {
console.error(e)
}
}