https://www.mongodb.com/docs/manual/reference/operator/query/
db.mydb.mycollection.find({"age":{$eq:25}})
db.mydb.mycollection.find({"age":{$gt:25}})
db.mydb.mycollection.find({"age":{$gte:25}})
db.mydb.mycollection.find({"age":{$eq:[25, 20]}})
db.mydb.mycollection.find({"age":{$lt:25}})
db.mydb.mycollection.find({"age":{$lte:25}})
db.mydb.mycollection.find({"age":{$ne:25}})
db.mydb.mycollection.find({"age":{$nin:[25]}})
Joins query clauses with a logical AND returns all documents that match the conditions of both clauses. For example:-
db.myCollection.find( { $and: [ { age: { $ne: 30 } }, { city: { $eq: "Los Angles" } } ] } )
Inverts the effect of a query predicate and returns documents that do not match the query predicate. For example:-
db.myCollection.find( { $not: [ { age: { $ne: 30 } }, { city: { $eq: "Los Angles" } } ] } )
Joins query clauses with a logical NOR returns all documents that fail to match both clauses. For example:-
db.myCollection.find( { $nor: [ { age: { $ne: 30 } }, { city: { $eq: "Los Angles" } } ] } )
Joins query clauses with a logical OR returns all documents that match the conditions of either clause. For example:-
db.myCollection.find( { $or: [ { age: { $ne: 30 } }, { city: { $eq: "Los Angles" } } ] } )