mongodb greater than and less than compass code example
Example 1: mongodb find with gt
{field: {$gt: value} }
Example 2: mongodb greater than
db.yourDataBase.find({counter:{$gt:2}})
{field: {$gt: value} }
db.yourDataBase.find({counter:{$gt:2}})