title: MongoDB - Unwind array using aggregation and remove duplicates
body: <p>I am unwinding an array using MongoDB aggregation framework and the array has duplicates and I   need to ignore those duplicates while doing a grouping further.</p>
  
  <p>How can I achieve that?</p>