Articles → MONGODB → $Not Operator In Mongodb

$Not Operator In Mongodb






Purpose





Example




Picture showing the sample sales document




db.sales.find({product: { $not: { $eq: "A"} }})



Output


Picture showing the output of $not operator in mongodb





Posted By  -  Karan Gupta
 
Posted On  -  Friday, March 1, 2024

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250