TypeScript
'databases.${ApiInfo.databaseidbase}.collections.${ApiInfo.collectionIdEvents}.documents.*.create'
]);``` thats how i subscribe but it doesnt work
TL;DR
To create a realtime subscription on document creation, developers can follow this solution:
Subscribe using the correct format as shown below:
```final localtopicsubscription = ApiClient.realtime.subscribe([
'databases.${ApiInfo.databaseidbase}.collections.${ApiInfo.collectionIdEvents}.documents.*.create'
]);```databases.${ApiInfo.databaseidbase}.collections.${ApiInfo.collectionIdEvents}.documents
If you want to listen to any document creation in that collection
that works for updates too i dont want to listen to updates
you can only listen to channels
not specific events
oh rip
is there any workaround?
Recommended threads
- Update user email using OTP
Hi, I am trying to implement email update using OTP, there is not password associated with the account. One solution I found online is creating appwrite functio...
- RowList: The value of total is coming as...
RowList: The value of total is coming as a String, so it throws an error because it’s not parsed into an int. Error: TypeError: \"37\": type 'String' is not a ...
- Websocket error Realtime
Hi peeps, I am trying to create realtime updates and I am having websocket error Code is below this msg