
Hello,
if I'm subscribed to changes in a collection like this:
databases.${database}.collections.usersRelations.documents
is there an easy/better way how I can tell if a specific document was created/updated/deleted?
Or do I just need to check if for example databases.${database}.collections.usersRelations.documents.*.create
event is inside of the response.events?

Checking the event is the way to go

The first event is the most specific. And you can check the end if it has .create, .update, etc.

alright, thank you
Recommended threads
- Query.equal error
Hi guys. I'm using Appwrite Cloud, and I'm using version 21 of node-appwrite to benefit from transactions. The problem is I seem to be getting an error when I u...
- Cannot access my Appwrite database on th...
Hello guys, I am currently developing a web app and using appwrite for authentication, database, storage and messaging. It was working well but since yesterday...
- Nuxt Middleware Support
So I'm trying to protect some routes so that the user is redirected back to the login screen should they not have an active session. However, I'm stuck in a lo...
