mongodb find with conditions not euqal to code example Example: mongoose find not equal to db.inventory.find( { qty: { $ne: 20 } } )