Menu

#44 Need afterDeleteDocument event?

open
nobody
None
5
2011-03-21
2011-03-21
No

How should this case be handled?

DocumentA has a ComputedOnSave field that depends on an item on DocumentB.
Now DocumentB is being deleted, so DocumentA needs to be saved so that its field is updated.
How do we make sure it's saved at the right time?
The onDelete event of DocumentB fires too early (before deletion). Same for actions on DocumentB (executed before deletion).

Discussion


Log in to post a comment.

MongoDB Logo MongoDB