balderdashy/sails-mongo — pull request #153 by clarkorz (2014-05-26 07:45:53+00:00)
Title: support criteria on id field, convert them all to ObjectId

`where={ id: { '>': '51e866e48737f72b32ae4fbc' } }` This should work now. Support for '>', '>=', '<', '<='. Very useful for pagination on range query.

This PR only works for id field (`_id`), not any other field with type of `objectid`(like association field).