Hello, i was reading the documentation but can't find this. I just want to check whether it is possible to set up a function event to be triggered when there is an update to a specific document's attribute.
For example, an attribute named "status" gets updated from true to false.
Nope, Events are document based only.
A quick workaround would be to create a second flags collection that will have only, for example:
- option id
- status
And listen to events for that small collection.
thanks @Binyamin for the workaround 🙂
[SOLVED] Trigger function by specific update to an attribute of a document
Recommended threads
- self-hosted auth: /v1/account 404 on saf...
Project created in React/Next.js, Appwrite version 1.6.0. Authentication works in all browsers except Safari (ios), where an attempt to connect to {endpoint}/v1...
- delete document problems
i don't know what's going on but i get an attribute "tournamentid" not found in the collection when i try to delet the document... but this is just the document...
- Update User Error
```ts const { users, databases } = await createAdminClient(); const session = await getLoggedInUser(); const user = await users.get(session.$id); if (!use...