Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

mongodb not in

#all documents whose country field value is not neither Portugal or Spain
query = db.collection.find({
    "country" : { '$nin': [
        'Portugal',
        'Spain']
    }
})
 
PREVIOUS NEXT
Tagged: #mongodb
ADD COMMENT
Topic
Name
3+5 =