[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
- TablesDB `updateRows` returns `database_...
Hi Appwrite team! I’m seeing a strange issue with TablesDB bulk row updates on a self-hosted Appwrite instance. **Environment** - Appwrite self-hosted `1.9.0` ...
- [SOLVED] Realtime Missing Channels
```js useEffect(() => { let subscription: RealtimeSubscription; async function loadChips() { try { const {rows: chi...
- Update row sheet not loading
After right clicking a row header and click update, the sidebar fails to load (never-ending skeleton)