DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
2+9 =
Submit