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

double nested array element is implicitly extracted if it is addressed through an embedded field name, otherwise it isn't

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Index Maintenance, Querying
    • Labels:
      None
    • ALL

      > c.drop();
      true
      > c.save( {a:[[1]]} )
      > c.find( {'a.0':1} )
      > c.save( {a:[[{b:1}]]} )
      > c.find( {'a.0.b':1} )
      { "_id" : ObjectId("4e154cf00157217a5f5f2989"), "a" : [ [ { "b" : 1 } ] ] }
      

            Assignee:
            david.storch@mongodb.com David Storch
            Reporter:
            aaron Aaron Staple
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: