I'm learning to use Mongoose ODM for working with my MongoDB right now and found something very cool about middleware and feel compelled to share.
Mongoose provides functions for your standard database CRUD operations, like find() and save(), which do what you probably expect them to.