I’m trying to write an afterUpdate handler in Node.js, but it isn’t being called by the server.
I can confirm that CodeRunner detects the file:
12:23:57.563 - persistence.afterUpdate (Person) (app\handlers\persistence\person\afterUpdate.js)
In addition, I have a beforeUpdate handler for the same table that does work correctly.
On another note: I’m having trouble finding adequate documentation on how to properly modify responses in before/after handlers. I found out from an earlier thread that response data must be modified directly on the response variable during an afterFind operation. I’m trying to repeat this same pattern for an afterUpdate operation. The current documentation for these data service handlers is incomplete, and some of it displays code from other languages (looks like Java - search @Asset in the page).
Can anyone direct me to documentation on how to properly use these events?
I’m on v3, and have bee referencing the below docs: