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)

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 3.0.12, 3.4.10, 3.6.0-rc2
    • Component/s: Querying
    • Query Optimization

      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

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

              Created:
              Updated: