use gte and lte in mongodb code example
Example: mongodb gte
// $gte selects the documents where the value of the field is greater
// than or equal to (i.e. >=) a specified value (e.g. value.)
db.inventory.find( { qty: { $gte: 20 } } )
// $gte selects the documents where the value of the field is greater
// than or equal to (i.e. >=) a specified value (e.g. value.)
db.inventory.find( { qty: { $gte: 20 } } )