Reputation: 73385
I am listening to this path using Cloud Functions onWrite:
/msgr/{a}/users/{b}
Now assume that there are 100 children under users
.
When I delete /msgr/x/users/12
from the console, the onWrite trigger is run, which is as expected.
However, if I delete /msgr/x/users
from the console, the onWrite function is not run at all. I expect that the onWrite trigger is run 100 times, as much as the number of children under users
.
Is this the expected behavior?
Upvotes: 2
Views: 1015
Reputation: 598797
As fellow Firebaser Tom said on the firebase-talk mailing list:
Thanks for reporting, I found two bugs, I hope to have them rolled out to production by May 10th.
Update: this problem has been fixed. Leaving my original response for posterity.
Upvotes: 1