title: How to find documents
body: <p>Below is the mongoose code in app.js</p>
  
  <pre><code>app.get('/view', function (req, res) {
  
  
  if (err) return handleError(err);
  
      {
  </code></pre>
  
  <p>);
      });</p>
  
  <p>I have two different host entries that is Host_name:Redhat1,Host_name:Redhat2.
  How to get only latest entries of both using mongoose.
  What should be modified in the above find condition in schema. Please help </p>