Join us Sept 17 at .local NYC! Use code WEB50 to save 50% on tickets. Learn more >
MongoDB Event
Docs Menu
Docs Home
/
Database Manual
/ / /

Logical Query Predicate Operators

Logical operators return data based on Boolean logic (and, or, and nor).

Name
Description

$and

Joins query clauses with a logical AND and returns documents that match the conditions of all clauses.

Joins query clauses with a logical NOR and returns all documents that fail to match all clauses.

Inverts the effect of a query predicate and returns documents that do not match the query predicate.

Joins query clauses with a logical OR and returns all documents that match at least one clause.

Back

$polygon