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
- [SOLVED] Appwrite Cloud and FRA cloud se...
Can anyone estimate how long this will take to resolve? I am checking status here https://status.appwrite.online/
- How to use Operator.arrayAppend on a rel...
Hi, is it possible to use any operator on a relationship column? I have a One to Many relationship column on a table and I would like to add entries to the colu...
- 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...