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
- Apple OAuth Scopes
Hi Hi, I've configured sign in with apple and this is the response i'm getting from apple once i've signed in. I cant find anywhere I set scopes. I remember se...
- Sign In With Apple OAuth Help
Hi All! I've got a flutter & appwrite app which Im trying to use sign in with apple for. I already have sign in with google working and the function is the sam...
- Type Mismatch in AppwriteException
There is a discrepancy in the TypeScript type definitions for AppwriteException. The response property is defined as a string in the type definitions, but in pr...