Articles → MONGODB → $Size Operator In Mongodb

$Size Operator In Mongodb






Purpose





Example




Picture showing the sample Employee collection




db.Employees.find({ "hobbies": { $size: 3 } })



Output


Picture showing the output of $size operator in mongodb





Posted By  -  Karan Gupta
 
Posted On  -  Thursday, March 7, 2024

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250