title: $or condition possibly failing on mongodb 1.2.2 with Mongoose and MEAN stack?
body: <p>I am using mongodb for my MEAN.JS application.
  I have mongodb version 2.6.* installed on my local development machine. While on the remote server I have mongodb version 1.2.2 installed. I am using Mongoose as my ORM.</p>
  
  <p>All other code seems to be working fine on both versions of mongo except the following :</p>
  
  <pre><code>RoomAvailability.find({
     'resort_id': checklist.resort_id,
              $or: [{
                  'start_date': {
                      $lte: checklist.end_date
                  }
              }, {
                  'end_date': {
                      $gte: checklist.start_date
                  }
              }]
          }, function (err, booked_rooms) {});
  </code></pre>
  
  <p>This find query seems the extract the correct data on my local machine. While on the remote server it returns an empty array for the same set of data.</p>
  
  <p>Is there any syntactical issue? Please guide.</p>