|
56 | 56 | "<": _operator_enum.LESS_THAN, |
57 | 57 | "<=": _operator_enum.LESS_THAN_OR_EQUAL, |
58 | 58 | _EQ_OP: _operator_enum.EQUAL, |
| 59 | + "!=": _operator_enum.NOT_EQUAL, |
59 | 60 | ">=": _operator_enum.GREATER_THAN_OR_EQUAL, |
60 | 61 | ">": _operator_enum.GREATER_THAN, |
61 | 62 | "array_contains": _operator_enum.ARRAY_CONTAINS, |
62 | 63 | "in": _operator_enum.IN, |
| 64 | + "not-in": _operator_enum.NOT_IN, |
63 | 65 | "array_contains_any": _operator_enum.ARRAY_CONTAINS_ANY, |
64 | 66 | } |
65 | 67 | _BAD_OP_STRING = "Operator string {!r} is invalid. Valid choices are: {}." |
@@ -255,8 +257,8 @@ def where(self, field_path: str, op_string: str, value) -> "BaseQuery": |
255 | 257 | field_path (str): A field path (``.``-delimited list of |
256 | 258 | field names) for the field to filter on. |
257 | 259 | op_string (str): A comparison operation in the form of a string. |
258 | | - Acceptable values are ``<``, ``<=``, ``==``, ``>=``, ``>``, |
259 | | - ``in``, ``array_contains`` and ``array_contains_any``. |
| 260 | + Acceptable values are ``<``, ``<=``, ``==``, ``!=``, ``>=``, ``>``, |
| 261 | + ``in``, ``not-in``, ``array_contains`` and ``array_contains_any``. |
260 | 262 | value (Any): The value to compare the field against in the filter. |
261 | 263 | If ``value`` is :data:`None` or a NaN, then ``==`` is the only |
262 | 264 | allowed operation. |
@@ -864,7 +866,7 @@ def _enum_from_op_string(op_string: str) -> Any: |
864 | 866 |
|
865 | 867 | Args: |
866 | 868 | op_string (str): A comparison operation in the form of a string. |
867 | | - Acceptable values are ``<``, ``<=``, ``==``, ``>=`` |
| 869 | + Acceptable values are ``<``, ``<=``, ``==``, ``!=``, ``>=`` |
868 | 870 | and ``>``. |
869 | 871 |
|
870 | 872 | Returns: |
|
0 commit comments