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 |