-
Type: Investigation
-
Resolution: Done
-
Priority: Minor - P4
-
Affects Version/s: None
-
Component/s: None
-
None
-
Not Needed
Original Downstream Change Summary
This change modifies error messages when incorrectly using `$and`, `$or`, `$not` and `$nor` operators in `$match` expressions.
Description of Linked Ticket
$and with argument that is not an array:
$and must be an array (2)
Suggest "$and argument must be an array" instead.
$not with an empty hash argument:
$not cannot be empty (2)
Suggest "$not argument cannot be an empty document" instead.
- depends on
-
SERVER-49387 Poorly worded parsing error messages for match expressions
- Closed