Complex key in group command inserts wrong key into output object

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Minor - P4
    • 1.1.1
    • Affects Version/s: 1.1.0
    • Component/s: None
    • None
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      db.coll.insert({foo:{bar:1}})
      db.coll.group({key:

      {"foo.bar":true}

      , initial:

      {c:0}

      , reduce:function(doc,out){out.c++}})
      [

      {"bar" : 1 , "c" : 1}

      ]

      I think that should return:
      [

      {"foo.bar" : 1 , "c" : 1}

      ]

              Assignee:
              Mathias Stearn
              Reporter:
              Mathias Stearn
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: