title: Execute multiple queries at once in Mongoose
body: <p>
  I am trying to combine two queries in Mongoose into one.</p>
  
  <p>
  Right now, I'm doing this:</p>
  
  <pre><code>User.find({ _id: req.body.userId }, (err, user) =&gt; {
    User.find({ username: decodedUser.username }, (err, member) =&gt; {
     console.log("user\n", user)
     console.log("member\n", member)
   })
  })
  </code></pre>
  
  
  
  <p>I'd like to make a single <code>User.find()</code> query to the database, and the result be an object (or an array) of all the documents that I want, such as an array of <code>[user, member]</code> in this case.  This will save me from having to run <code>User.find()</code> twice.  Ideally, I'd like the result from the query to be an object so that I can find a specific key/value set more easily, as opposed to an array that I would have to iterate through to find a particular element.  <strong>How do I do this?</strong></p>
  
  <p>
  Note: this works:</p>
  
  <pre><code>User.find({ $or:
    [
      { _id: req.body.userId },
      { username: decodedUser.username}
    ]}, (err, results) =&gt; {
    console.log("results\n", results)
  })
  </code></pre>
  
  <p>where <code>results</code> is an array of the documents that I want.  But, I'd like to know if there is a better way.</p>