title: Display data in Jade with Mongoose
body: <p>I've been trying to grab my data that's stored in mongodb and display it with a simple Jade template. I'm kinda new to this and I'm totally lost at this point.</p>
  
  <p>Here's my output when I render my collection on /yfirlit</p>
  
  <p><a href="https://i.stack.imgur.com/CGOce.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CGOce.png" alt="MongoDB output on yfirlit-page"></a> </p>
  
  <p>The express router for /yfirlit looks like this</p>
  
  <pre><code>apiRouter.get('/yfirlit', function(req, res){
    apiUser.find(function(err, users) {
       if(err) res.send(err);
         res.render('yfirlit', {title: 'Yfirlit', users: users});
      });
  });
  </code></pre>
  
  <p>My simple Jade Template</p>
  
  <pre><code>html
    head
     title!= title
    body
      div #{users}
      p
       | API
  </code></pre>
  
  <p>When I run the test the whole mongodb collection is displayed on the site. What I'm looking for is to be able to display only a portion of the documents in the collections. For example: I tried to display only the name property in the Jade template but was unable to get it right.</p>
  
  <pre><code>html
    head
     title!= title
    body
      div #{users.name}
      p
       | API
  </code></pre>
  
  <p>Any help would be greatly appreciated, I'm so lost and I would love to be able to render out only the properties that I wanted instead of the whole thing like in the picture.</p>
  
  <p>Cheers!</p>