Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-16417

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

    • Type: Icon: Task Task
    • Resolution: Works as Designed
    • Priority: Icon: Minor - P4 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.

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

              Created:
              Updated:
              Resolved:
              30 weeks, 2 days ago