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
- How to Display File in Web?
I'm trying to use Appwrite's Storage to store images and display them in my app, however when I use the `getFileView`, `getFileDownload` or `getFilePreview` met...
- Project Paused Despite Daily Active Usag...
I noticed that my project was automatically **paused**, even though it is actively being used. The project is an **attendance application** that is used daily b...
- Sudden CORS Errors - Domain hasn't Chang...
I have an Appwrite project with two web apps configured, the first one has the hostname `*` and the second one I just added to test if it could fix the issue wi...