Back

Removing an attribute from update event

  • 0
  • Android
  • Functions
Shivam
2 Feb, 2025, 16:13

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.

TL;DR
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.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more