$unwind should have a way to request uniquification.

XMLWordPrintableJSON

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

      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
            Reporter:
            Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: