mongodb greater then code example
Example 1: mongodb less than
db.yourDatabaseName.find(counter:{$lt:100})
Example 2: mongodb greater than field value
collection.find( { $expr: { $gt: [ "$field1" , "$field2" ] } } )
#field1 greater than field2
db.yourDatabaseName.find(counter:{$lt:100})
collection.find( { $expr: { $gt: [ "$field1" , "$field2" ] } } )
#field1 greater than field2