Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-7296

Investigate changes in SERVER-49387: Poorly worded parsing error messages for match expressions

    • Type: Icon: Investigation Investigation
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • No version
    • 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.

            Assignee:
            Unassigned Unassigned
            Reporter:
            backlog-server-pm Backlog - Core Eng Program Management Team
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: