# db.command.in

Query filter, indicating that the value of a field is required to be out of the given array.

Method signature:

function nin(values: any[]): Command

Sample code

Find out the todos whose progress is neither 0 nor 100

const _ = db.command
db.collection('todos').where({
  progress: _.nin([0, 100])
})
.get({
  success: console.log,
  fail: console.error
})