title: How do you do more advance queries with Mongoose? Specifically a query using $or
body: <p>I was learning some mongodb stuff, and it's pretty awesome!</p>
  
  <p>I decided to try it out with mongoose in node and came upon the realization that I have no idea how to run an or command, so I looked up how you would do an or command in regular mongoose and found that the query is similar to this:</p>
  
  <blockquote>
    <p>db.meh.find({ $or : [ { a : 3 }, { b : 4 } ] });</p>
  </blockquote>
  
  <p>And that seems to work great with the command line program for finding all entities where a == 3 or b == 4</p>
  
  <p>But... How would I do this in mongoose?</p>
  
  <p>Any help is appreciated!!</p>
  
  <p>Note I also would like to be able to do this with the findOne() method, but I'm assuming that it'll act just the same as find() with a limit on it</p>