# db.command.lte

Query filter, indicating that the value of a field is required to be less than or equal to the specified value. The Date object may be imported to compare the dates.

Method signature:

function lte(value: number | Date): Command

Sample code

Find out the todos whose progress is less than or equal to 50

const _ = db.command
db.collection('todos').where({
  progress: _.lte(50)
})
.get({
  success: console.log,
  fail: console.error
})