Articles → MONGODB → $Elemmatch Operator In Mongodb
$Elemmatch Operator In Mongodb
Purpose
Example
db.authors.find({ "authors": { $elemMatch: { "name": "Jeff" } }})
db.authors.find({ "authors": { $elemMatch: { "age": {$lt:30} } }})
Posted By - | Karan Gupta |
|
Posted On - | Friday, March 15, 2024 |