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