querying with a combination of $all and $exists does not work

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: 1.8.1
    • Component/s: Querying
    • Environment:
      Mac OSX
    • OS X
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Given the following record in a collection named "tests":

      {
      name : "Testing",
      values : [

      {value1 : 123}

      ,

      {value2 : 456}

      ]
      }

      This query returns the record:
      db.tests.find({values : { $all : [

      {value1 : 123 }

      ] } } )

      This query does not return the record:
      db.tests.find({values : { $all : [ {value1 :

      { $exists : true }

      } ] } } )

      That seems incorrect. Am I doing anything wrong or should this work?

            Assignee:
            Unassigned
            Reporter:
            Ed Shadi
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: