
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
- my database attribute stuck in processin...
when i created attributes in collection 3 of those attributes become "processing", and they are not updating, the worst thing is that i cant even delete them s...
- Is Quick Start for function creation wor...
I am trying to create a Node.js function using the Quick Start feature. It fails and tells me that it could not locate the package.json file. Isn't Quick Start ...
- Forever Processing Issue
I encountered an issue when creating attributes in the collections . if you create an attribute of type string for example and choose a size of 200 or 250 or a...
