Projections using dot notation to select an array element don't work

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Works as Designed
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Querying
    • None
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

       db.getCollection('SomeCollection').find({}, {'array.0':1}) 

      I would expect the above to return documents like:

       {array:[{a:'a',b:'b'}]} 

      but instead returns all elements of the array, just as empty objects:

       {array:[{}, {}, {}]} 

      This doesn't make any sense. It seem broken.

            Assignee:
            Kelsey Schubert
            Reporter:
            Billy Tetrud
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: