[SERVER-6429] $unwind keys in a document or subdocument and group by them without knowing all the field names beforehand. Created: 12/Jul/12  Updated: 19/Mar/13  Resolved: 14/Mar/13

Status: Closed
Project: Core Server
Component/s: Aggregation Framework
Affects Version/s: 2.1.2
Fix Version/s: None

Type: New Feature Priority: Major - P3
Reporter: Dorian Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File document structure.txt    
Issue Links:
Duplicate
duplicates SERVER-5947 Add ability to project key names as v... Closed
Participants:

 Description   

Currently i can $unwind this:
{
"c" : [

{ country: "us", n: 10}

,

{ country: "uk", n: 20}

,

{ country: "fr", n: 30}

]
})

But i need to $unwind the keys in the "c" key or the "d" key (check attachment). Group page: https://groups.google.com/forum/?fromgroups#!topic/mongodb-user/kFW78PLVabU


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