My function is executed after the document update , how i can get the oldValue and Current Document in the cloud function ?
For now you'll get only the current-updated values of the document.
This is a requested feature, you can check about it here (and upvote): https://github.com/appwrite/appwrite/issues/3294
The quick workaround would be what Steven's suggesting here https://github.com/appwrite/appwrite/discussions/5615#discussioncomment-6071506
and that value is in the req.variables.APPWRITE_FUNCTION_EVENT_DATA ?
as a whole document ?
I have to do some extra work for this to work . Okay thanks
Yes.
Recommended threads
- Function deployment failed: Unable to re...
Hi Appwrite team, I have been experiencing persistent errors when i attempt to push my appwrite functions. The logs on the deployment detail page on the console...
- My cloud functions failing 3 days ago (P...
Hi, My cloud function using python has been failing for 3 days, I didn't push any new deployments... Its something to do with it not recognising the entrypoi...
- Scheduled works locking the entire Maria...
I have a scheduled function and apparently that or something is locking the entire MariaDB database and Appwrite is giving MariaDB errors. This error persists e...