less than equal check in mongodb code example
Example 1: mongodb less than
db.yourDatabaseName.find(counter:{$lt:100})
Example 2: mongodb greater than
db.yourDataBase.find({counter:{$gt:2}})
db.yourDatabaseName.find(counter:{$lt:100})
db.yourDataBase.find({counter:{$gt:2}})