get all personne which have more than 21 age mongodb code example Example: mongodb greater than db.yourDataBase.find({counter:{$gt:2}})