if value is greater then 0 mongodb code example Example: mongodb greater than db.yourDataBase.find({counter:{$gt:2}})