title: Mongoose: Get full list of users
body: <p>I have tried to use Mongoose to send the list of all users as follows:</p>
  
  <pre><code>server.get('/usersList', function(req, res) {
      var users = {};
  
      User.find({}, function (err, user) {
          users[user._id] = user;
      });
  
      res.send(users);
  });
  </code></pre>
  
  <p>Of course, <code>res.send(users);</code> is going to send <code>{}</code>, which is not what I want. Is there a <code>find</code> alternative with slightly different semantics, where I could do the following?</p>
  
  <pre><code>server.get('/usersList', function(req, res) {    
      User.find({}, function (err, users) {
          res.send(users);
      });
  });
  </code></pre>
  
  <p>Essentially, I want the callback to be executed only when all the users have been fetched from the database.</p>