[SOLVED] how to know if the document was created, updated or deleted in realtime payload?
- 0
- Databases
- Realtime
- Web
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
The event should tell you if it's a create, update, or delete. See https://appwrite.io/docs/apis/realtime#payload
[SOLVED] how to know if the document was created, updated or deleted in realtime payload?
Recommended threads
- I recently switched to TablesDb. When li...
olddb.list_documents( queries =[ Query.order_desc("timestamp"), Query.equal("isPosted",[False]) ] ) Above works fine and reruns documents But below don't return...
- Database error validating 'min' and 'max...
I keep seeing an error when I try to add a column to a database table within the AppWrite cloud UI. I also see this error when trying to create or update a reco...
- Anyone manage to get a slack-bot working...
I'm trying to setup a bot the send and retrieve slack messages to a chat in my site. I've failed with SSE and appwrite functions soo far... i'll trying polling ...