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
- Local appwrite run functions --user-id n...
Hi, I'm running into an issue when testing Appwrite functions locally with user impersonation. I'm using a self-hosted Appwrite instance and running functions ...
- Impossible to get USER after createEmail...
Am using provider to deal with functions linked to appwrite. Here is my login. Future<String?> login(String email, String password) async { try { aw...
- Selfhosted Github App installation
I've followed this guide: https://appwrite.io/docs/advanced/self-hosting/configuration/version-control to connect GitHub to my self-hosted Appwrite instance (1....