balderdashy/waterline — pull request #525 by aclave1 (2014-07-13 20:09:42+00:00)
Title: create beforeFind lifecycle callback

I created a beforeFind lifecycle callback to allow a user to always modify a model's find or findOne queries with some criteria. A good use case would be if you're using a soft-delete system and you'd like to tack on an isDeleted:false to any find query on a model. Please feel free to critique the code/suggest changes, I tried to stick to the style that already exists.