title: MongoDB - Fetch top 5 fields of a leaderboard
body: <p>I have a very simple table which outputs the data as</p>
  
  <pre><code>{
  _id: 55dbdffeaba8ee274d3b9f89,
      firstname: 'Jim',
      lastname: 'Kirk',
      email: 'ewrwe@kewoio.com',
      points: 3333,
  }
  </code></pre>
  
  <p>I have about 10 records in my database so far.  I use the following var to create user model.</p>
  
  <pre><code>var User = mongoose.model('User', userSchema);
  </code></pre>
  
  <p>I want to sort the points by the most and display the top 5 at any given time..store as a variable and pass through to express/ejs as an array.  </p>
  
  <p>So far I have this query but when I console.log I get undefined.</p>
  
  <pre><code>var leaderboard = User.find( {points: {$exists: true}} ).sort({points : -1}).limit(5);
  </code></pre>
  
  <p>Update: Upon running this query in Robomongo I get 5 records with all data, but a console.log returns the data 'undefined'.  How can I output data as array to put into a table and also filter out the _id and email?</p>