Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Query all object in mongo array to satisy condition

db.collection.find({"users":{"$not":{"$elemMatch":{"user":{$nin:[1,5,7]}}}}})
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Query #object #mongo #array #satisy #condition
ADD COMMENT
Topic
Name
2+9 =