title: In a MongoDB query, what does a negative limit mean?
body: <p>I'm using the Mongoid ruby gem to interact w/ MongoDB and when I try to get one of something from a query, it adds <code>$limit: -1</code> (i.e. negative one) when I would expect it to just use <code>1</code>. I tried doing the same thing in the console and it didn't change which document was returned.</p>
  
  <p>Does a negative limit mean something special?</p>