Docs Menu

Docs HomeMongoDB Manual

Comparison Query Operators

Comparison operators return data based on value comparisons.

Note

For details on a specific operator, including syntax and examples, click on the link to the operator's reference page.

For comparison of different BSON type values, see the specified BSON comparison order.

Name
Description
Matches values that are equal to a specified value.
Matches values that are greater than a specified value.
Matches values that are greater than or equal to a specified value.
Matches any of the values specified in an array.
Matches values that are less than a specified value.
Matches values that are less than or equal to a specified value.
Matches all values that are not equal to a specified value.
Matches none of the values specified in an array.
←  Query and Projection Operators$eq →
Give Feedback
© 2022 MongoDB, Inc.

About

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