Articles → MONGODB → $Mul Operator In Mongodb

$Mul Operator In Mongodb






Purpose





Example




Picture showing the sample mongodb collection




db.mycollection.updateMany({},{$mul:{age:2}})


Picture showing applying the $mul operator in mongodb



Output


Picture showing the collection after applying the $mul operator





Posted By  -  Karan Gupta
 
Posted On  -  Tuesday, March 19, 2024

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250