Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

search inside array with object mongodb

db.users.find({awards: {$elemMatch: {award:'National Medal', year:1975}}})
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #search #array #object #mongodb
ADD COMMENT
Topic
Name
8+5 =