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

XMLWordPrintableJSON

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

      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:
            [DO NOT USE] Backlog - Query Optimization
            Reporter:
            Roswitha Remling (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: