Hi I want to have possibility to save history of changes on collection. When I save some changes, old value should save in another "history" collection. It should works like "before update" Trigger in SQL. What is best approach to do it in Appwrite?
You need to do this to a specific collection or all your collections?
for now only 1 collection
I did something similar in a project:
I created a function to process my requests (I call this function for each request). In the function I passed the databaseId, collectionId, and data to update. I did a similar endpoint to edit a document (it included documentId).
Then In the function I requested the current data, logged in a different collection, and then update it. I don't know if that meets your needs
<@688415252471349251>
Ok. So am I good understand. I have to create function only to save specific document in history collection, and next I have to trigger this function when I'm updating document in my "real" collection?
Recommended threads
- TablesDB can't be used in Appwrite Funct...
I have written a function (DART) and it won't deploy. Here is what I get : 2026-03-14T17:09:41.459693680Z Compiling ... 2026-03-14T17:09:42.915619217Z ../build...
- Realtime for files() works almost well, ...
I have been trying to make use of realtime, today (14.03.26) I have pulled all the latest versions of docker images, and sdk available. Whats working: - Conn...
- Local appwrite run functions --user-id n...
Hi, I'm running into an issue when testing Appwrite functions locally with user impersonation. I'm using a self-hosted Appwrite instance and running functions ...