Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

not in in mongodb

-- Syntax: { field: { $nin: [ <value1>, <value2> ... <valueN> ] } }
db.inventory.find( { quantity: { $nin: [ 5, 15 ] } }, { _id: 0 } )
Source by www.mongodb.com #
 
PREVIOUS NEXT
Tagged: #mongodb
ADD COMMENT
Topic
Name
8+2 =