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 $limit: -1
(i.e. negative one) when I would expect it to just use 1
. I tried doing the same thing in the console and it didn't change which document was returned.
Does a negative limit mean something special?