Here is the use case:
A is model, and B is a model related to A.
On A's afterSave(), I send out a push notification. On B's afterSave(), I send out a push notification. But on B's afterSave(), I call save() on A, and this results in A's afterSave triggering another push notification. I'd like to avoid this.
How can I save A in B's afterSave() such that A's afterSave() isn't called?
What would be even better is being able to somehow pass the message along to A that its B thats causing the afterSave() i.e. in general, a cloud function and not a direct http request thats causing the afterSave(), and then conditionally perform the remaining logic.
Help is much appreciated! Thanks!