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

    • Task
    • Status: Backlog
    • Minor - P4
    • Resolution: Unresolved
    • 3.0.12, 3.4.10, 3.6.0-rc2
    • None
    • 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

        Issue Links

          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: