I have two buckets called X and Y. Documents in each bucket have a type field.
I have set up the eventing service so that when documents in bucket X are updated I generate an update document in bucket Y.
I’m now trying to create another function so that when these update documents are added to Y I update the value of a document in bucket X (not the one that caused the initial event). However, this second function doesn’t seem to work. I’m wondering whether the problem is that by making bucket X the source for the first function it can no longer work as the target of the second function.
I’ve already spent some time trying to debug but haven’t had much luck. Is what I’m trying to do actually possible?
The functions filter on the ‘type’ attribute so there’s no way of triggering a circular update loop.
Any guidance would be appreciated.