find object where property is not equal to mongodb code example Example: mongoose find not equal to db.inventory.find( { qty: { $ne: 20 } } )