Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-49387

Poorly worded parsing error messages for match expressions

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 7.2.0-rc0
    • Affects Version/s: 7.0.0
    • Component/s: None
    • Query Optimization
    • Fully Compatible
    • QO 2023-10-02, QO 2023-10-16

      $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:
            c.alonso@mongodb.com Carlos Alonso Pérez
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: