mongodb query between values code example
Example: mongodb between two values
#all documents with the price value between 100 and 200
query = db.collection.find({
'price': { '$gt': 100, '$lt': 200}
})
#all documents with the price value between 100 and 200
query = db.collection.find({
'price': { '$gt': 100, '$lt': 200}
})