Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

mongodb between two values

#all documents with the price value between 100 and 200
query = db.collection.find({
        'price': { '$gt': 100, '$lt': 200}
})
 
PREVIOUS NEXT
Tagged: #mongodb #values
ADD COMMENT
Topic
Name
2+2 =