i'm working on a chat system, and have a realtime connection in the chat. so when i get a response in the realtime callback, i need to check if the new document was created, updated, or deleted to show users the corresponding message. is there any way to check that?
Appwrite: Cloud
App: NextJS
TL;DR
The user asked how to determine if a document was created, updated, or deleted in a realtime payload. The response from Appwrite explained that the event in the payload should indicate if it's a create, update, or delete action. The user mentioned they are working on a chat system and need to show users the corresponding message based on whether the document was created, updated, or deleted. The solution provided by Appwrite is to check the event in the realtime callback to determine the action.