How to get the list of documents in a realtime connection?
- 0
- Self Hosted
- Flutter
- Databases
- Realtime
I have a realtime connection listening on 'databases.$_mainDatabaseId.collections.$_collectonId.documents' and the stream is emitting the created item.
In my case I would like to have the stream of List<Document> .
To be more specific: I would like to listen to a specific query. Is that possible?
It really doesn't make sense to have a list of documents because only one document is updated at a time so it will always just be one document.
As for filtering, you'll have to filter client side in your callback. There's a feature request for filtering server side by passing some queries. I suggest you 👍 the issue: https://github.com/appwrite/appwrite/issues/2490
Recommended threads
- Function permissions
In my app I have a CreateUser flow which makes several documents and at the end uses the functions.createExecution() to call a server-side function to create a ...
- Which flutter SDK version for Self Hoste...
Hi all, Is there a good way to figure out which version of flutter SDK and Dart SDK is current for latest available self-hosted 1.8.0 ? I know new features are...
- Bug Report: Crash when trying to createR...
https://github.com/appwrite/sdk-for-android/issues/96 I think the bug is related with this one https://discord.com/channels/564160730845151244/1443887021314539...