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