# db.command.lt

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

Method signature:

function lt(value: number | Date): Command

Sample code

Find out the todos whose progress is less than 50

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