Query Operators#
Comparison#
Matches values that are equal to a specified value. |
|
Matches all values that are not 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 values that are less than a specified value. |
|
Matches values that are less than or equal to a specified value. |
|
Matches any of the values specified in an array. |
|
Matches none of the values specified in an array. |
Logical#
Joins query clauses with a logical AND returns all documents that match the conditions of both clauses. |
|
Joins query clauses with a logical OR returns all documents that match the conditions of either clause. |
|
Inverts the effect of a query expression and returns documents that do not match the query expression. |
Element#
Array#
Selects documents if the array field is a specified size. |
|
Selects documents if any element in the array field matches the specified query. |
|
Matches arrays that contain the specified element. |
|
Matches arrays that don’t contain the specified element. |
Evaluation#
Selects documents where values match a specified regular expression. |
|
Matches documents that satisfy a Python filter function. |