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

Array full match doesn't work with nested fields

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.3.5
    • Affects Version/s: None
    • Component/s: Querying
    • None
    • Minor Change

      > db.test.drop()
      false
      > db.test.insert({a: [1], b: {a: [1]}})
      > db.test.findOne(

      {'a': [1]}

      )
      {
      "_id" : ObjectId("4ba7b7c7b8c125a527c386fe"),
      "a" : [
      1
      ],
      "b" :

      { "a" : [ 1 ] }

      }
      > db.test.findOne(

      {'b.a': [1]}

      )
      null

            Assignee:
            eliot Eliot Horowitz (Inactive)
            Reporter:
            mathias@mongodb.com Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: