Please enable JavaScript.
Coggle requires JavaScript to display documents.
MONGO-DB_3 COMPLEX_QUERY - Coggle Diagram
MONGO-DB_3
COMPLEX_QUERY
SEARCH_OBJ
{ name:
{ $eq : "John"} }
OPERATORS
$eq
$ne
$gt
$gte
$lt-lte
$in
$nin
$in: [v1, v2]
$exists
: true/false
Field
Exists
For-Record
MULTIPLE
{age : { $gte : 20,
$lte : 30 } }
LOGICAL
And
$and : [...]
{age : { $lte: 20 }}
{name: "John"}
Or
$or : [...]
{age : { $lte: 20 }}
{name: "John"}
Not
age: { $not :
{ $lte: 20 } }
.find({..})
COMPARE
.find({..})
Fields
$expr: { $gt:
["$debt", "$balance"] }
NESTED
{"address.street": ...}
searchObj