title: How to remove duplicates in mongoDB with mongoose(NodeJS)
body: <p>I have a collection in MongoDB where there are around (~200k records). My sample record would look like,</p>
  
  <pre><code>{
      name:String,
      slug:String,
      metaDes:String,
      content:String,
      parentID:String,
      thumbnail:String,
      display:Boolean,
  }
  </code></pre>
  
  <p>I am having a lot of duplicate records in the collection having same <code>slug</code></p>
  
  <p>I want to remove duplicate records based on <code>slug</code>
  Is there any fast way to remove all duplicates with mongoose(Nodejs)?
  Thanks!</p>