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

$unwind keys in a document or subdocument and group by them without knowing all the field names beforehand.

    • Type: Icon: New Feature New Feature
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.1.2
    • Component/s: Aggregation Framework
    • Labels:
      None

      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

            Assignee:
            Unassigned Unassigned
            Reporter:
            ddorian Dorian
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: