[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
- Send Email Verification With REST
I am using REST to create a user on the server side after receiving form data from the client. After the account is successfully created i wanted to send the v...
- Use different email hosts for different ...
Hello, I have 2 projects and i want to be able to set up email templates in the projects. Both projects will have different email host configurations. I see ...
- Get team fail in appwrite function
I try to get team of a user inside appwrite function, but i get this error: `AppwriteException: User (role: guests) missing scope (teams.read)` If i try on cl...