# db.command.gt

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

Method signature:

function gt(value: number | Date): Command

Sample code

Find out the todos whose progress is greater than 50

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