how to select where field is greater than in mongodb code example Example: mongodb greater than db.yourDataBase.find({counter:{$gt:2}})