ShivamOriginal post
Rank 3: Container
I have a collection with 5 attributes and a function which is triggered when there is an update in the document.
But I want to get that function triggered only when there is an update in any of the 4 attributes.
I want to remove trigger for the 5th attribute because in that way there is a chance it may enter in infinite loop.
Summary
Developers want to trigger a function on document updates but only for 4 out of 5 attributes to avoid potential infinite loops.
Solution: Adjust the update event to exclude the 5th attribute from triggering the function.