title: How to use MongoDB/ Mongoose.js to query a OR/AND-like condition?
body: <p>How can I create a query using Node.js/JavaScript, MongoDB/Mongoosejs to input a OR/AND-like query condition and receive one or more results?</p>
  
  <p>Something like the following:</p>
  
  <pre><code>User.find({_id: idA OR idB}, function (err, users) {
    console.log(users[0]); // Is user with idA
    console.log(users[1]); // Is user with idB
  }
  </code></pre>
  
  <p>How can I accomplish this?</p>