Rank 1: Thread
My function is executed after the document update , how i can get the oldValue and Current Document in the cloud function ?
Votes
0
Replies
5
Participants
Unknown
Messages
6
Rank 1: Thread
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
Rank 1: Thread
and that value is in the req.variables.APPWRITE_FUNCTION_EVENT_DATA ?
Rank 1: Thread
as a whole document ?
Rank 1: Thread
I have to do some extra work for this to work . Okay thanks
Yes.