Modify document before fetching

6 views
Skip to first unread message

Kostas Bariotis

unread,
Oct 2, 2015, 8:49:00 AM10/2/15
to Mongoose Node.JS ODM
Hello,

I am looking for a way to sit right before the find/findOne functions and modify the documents before returning the query. This should also apply at the population so each schema can modify documents even before is being populated in an other schema.

Is this possible? Where should I start? Monkey patching solutions accepted. :)

Thank you
Reply all
Reply to author
Forward
0 new messages