
Hello, how could I get documents with a similar attribute in real time?

What do you mean?

For example, I have a posts collection and I want to see the comments in real time. I save comments with the postId attribute. How do I get only the comments for that post?

Filter client side

It seems that I understand, this would be done in the event property

What do you mean?

subscription.stream.listen((response) {
// here I would apply the filter?
}

https://github.com/appwrite/appwrite/issues/2490 ohh I found the issue, still doesn't seem possible for now. Thanks in advance

Use an if statement

Right, that's what I'm going to do for the moment for the hackathon. Thanks and regards

[SOLVED] Realtime query

Isn't that possible to achieve that by:
- Subscribing to an attribute (same attribute)
- Triggering a database query to get the last document with such attribute

It seems that this makes your app listen to all changes made in the database at once? (not only the ones with the attribute?)

there is no attribute channel. plus the attribute event is an update on the collection, not the document
Recommended threads
- I am facing this error: type 'Null' is ...
When attempting to fetch areas from the area collection, the application throws an error: "type 'Null' is not a subtype of type 'int.'" This issue originates in...
- Adding Domain to Sites [Self Hosted]
I am struggling to get this working. I stood-up a new server and deployed appwrite 1.7.4. I added update .env file _APP_DOMAIN=appwrite.mydomain.com _APP_DOMAI...
- Received duplicate events
I used the React Native SDK to subscribe to `buckets.<ID>.files` on the client side. When the backend creates a file, two events are logged in my client's conso...
