title: sails.js many to many query
body: <p>I am trying to build a chat app. I have a many-to-many association. A room have many users. And a user can have many rooms. I am trying to retrieve the room which has both user A (fromUserId) and user B (toUserId). I am trying something like this but I know it's not correct:</p>
  
  <pre><code>Room.find().populate('users', { where:{ id: [fromUserId, toUserId] } }).exec(function(err, rooms){
    console.log(rooms);
  });
  </code></pre>
  
  <p>The problem here is that it returns any rooms that users.id = fromUserId <strong>or</strong> toUserId. What I need here is an <strong>and</strong> query.</p>
  
  <p>Any help appreciated. (:</p>