MongoDB mayor que
db.yourDataBase.find({counter:{$gt:2}})
EZERP
db.yourDataBase.find({counter:{$gt:2}})
db.yourDatabaseName.find(counter:{$lt:100})
-- mongdbo
db.people.find(
{ age: { $gt: 25 } }
)
-- sql
SELECT *
FROM people
WHERE age > 25
-- mongdbo
db.people.find(
{ age: { $lt: 25 } }
)
-- sql
SELECT *
FROM people
WHERE age < 25
-- mongodb
db.people.find(
{ age: { $gt: 25, $lte: 50 } }
)
-- sql
SELECT *
FROM people
WHERE age > 25
AND age <= 50
db.inventory.find( { qty: { $gte: 20 } } )