I'm wondering if there is any reliable/reusable way to access the updated document during a mongoose post update middleware hook. All I seem to have access to is:
schema.post('update', function (result) {
console.log(this) // Mongoose Query, no relevant doc info
console.log(result) // Mongoose CommandResult, no relevant doc info
})
Thank you very much!