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?
Something like the following:
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
}
How can I accomplish this?