Answers for "mongo db greater than query"

3

mongodb greater than

db.yourDataBase.find({counter:{$gt:2}})
Posted by: Guest on July-17-2020
1

mongodb less than

db.yourDatabaseName.find(counter:{$lt:100})
Posted by: Guest on July-17-2020
1

mongodb greater than field value

collection.find( { $expr: { $gt: [ "$field1" , "$field2" ] } } )
#field1 greater than field2
Posted by: Guest on April-05-2021

Browse Popular Code Answers by Language