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

$unwind should have a way to request uniquification.

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Aggregation Framework
    • None
    • Fully Compatible

      not sure on syntax yet but it would be nice to be able to $unwind unique items in an array.

      eg: {_id: 1, a: [1,2,1,3,1,2]} would yield {_id:1, a:1}, {_id:1, a:2}, {_id:2, a:3}.

      Probably don't want to require order preservation.

            Assignee:
            Unassigned Unassigned
            Reporter:
            mathias@mongodb.com Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: