title: Mongoose and Express, How can I get unique records from db?
body: <p>In my database, I have 2-3 records with <code>title</code> (Article one).
  How can I get only 1 result?</p>
  
  <p>Following is my code that doesn't work,</p>
  
  <pre><code>app.get('/', (req, res) =&gt; {
    Article.find.distinct(title, (err, title) =&gt; {    
    if(err){
    console.log(err);
  } else {
    console.log(articles);
    res.render('index', {
      title: 'Articles',
      articles: title
      });
     }
    });
  });
  </code></pre>
  
  <p>But if I use,</p>
  
  <pre><code>Article.find({}, (err, title)
  </code></pre>
  
  <p>it works, but I do not need objects because they are all unique</p>
  
  <p>I tried this link 
       <a href="https://stackoverflow.com/questions/6043847/how-do-i-query-for-distinct-values-in-mongoose">How do I query for distinct values in Mongoose?</a></p>
  
  <p>But it does not work for me.</p>
  
  <p>For example, I have records:</p>
  
  <p>One, Two, One</p>
  
  <p>But need output: One, Two</p>