Docs Menu

Logical Query Operators

Logical operators return data based on expressions that evaluate to true or false.

Note

For details on specific operator, including syntax and examples, click on the specific operator to go to its reference page.

Name
Description
Joins query clauses with a logical AND returns all documents that match the conditions of both clauses.
Inverts the effect of a query expression and returns documents that do not match the query expression.
Joins query clauses with a logical NOR returns all documents that fail to match both clauses.
Joins query clauses with a logical OR returns all documents that match the conditions of either clause.
←  $nin$and →
Give Feedback
© 2022 MongoDB, Inc.

About

  • Careers
  • Investor Relations
  • Legal Notices
  • Privacy Notices
  • Security Information
  • Trust Center
© 2022 MongoDB, Inc.