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

Poorly worded parsing error messages for match expressions

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor - P4 Minor - P4
    • 7.2.0-rc0
    • 7.0.0
    • None
    • Query Optimization
    • Fully Compatible
    • QO 2023-10-02, QO 2023-10-16

    Description

      $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.

      Attachments

        Activity

          People

            c.alonso@mongodb.com Carlos Alonso Pérez
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: