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

Provide error message when $exists : "false" i.e. value is string (not boolean)

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Minor - P4 Minor - P4
    • None
    • 3.0.12, 3.4.10, 3.6.0-rc2
    • Querying
    • Query Optimization

    Description

      Currently $exists : "false" evaluates to true, as does "true" and any other string

      Shouldn't there be an error if you are trying to compare a string to a Boolean?

      Tested on 3.0.12 and 3.4.10

      Attachments

        Activity

          People

            backlog-query-optimization Backlog - Query Optimization
            roswitha.remling@mongodb.com Roswitha Remling (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated: