Friday 20 February 2015

Logical operators


Logical operators are used to connect query clauses.

Operator
Description
Joins query clauses with a logical AND returns all documents that match the conditions of both clauses.
$nor
Joins query clauses with a logical NOR returns all documents that fail to match both clauses.
$not
Inverts the effect of a query expression and returns documents that do not match the query expression.
Joins query clauses with a logical OR returns all documents that match the conditions of either clause.




Prevoius                                                 Next                                                 Home

No comments:

Post a Comment