[SERVER-296] Complex key in group command inserts wrong key into output object Created: 15/Sep/09  Updated: 30/Jan/18  Resolved: 16/Sep/09

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 1.1.0
Fix Version/s: 1.1.1

Type: Improvement Priority: Minor - P4
Reporter: Mathias Stearn Assignee: Mathias Stearn
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-257 Complex key support for group command Closed
Participants:

 Description   

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}

]


Generated at Thu Feb 08 02:53:39 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.