-
Type: Task
-
Resolution: Works as Designed
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: None
-
Labels:None
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.
- documents
-
SERVER-49387 Poorly worded parsing error messages for match expressions
- Closed