Rank 3: Container
Hello, how could I get documents with a similar attribute in real time?
Votes
0
Replies
13
Participants
Unknown
Messages
14
Rank 3: Container
Hello, how could I get documents with a similar attribute in real time?
Admin
What do you mean?
Rank 3: Container
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?
Admin
Filter client side
Rank 3: Container
It seems that I understand, this would be done in the event property
Admin
What do you mean?
Rank 3: Container
subscription.stream.listen((response) { // here I would apply the filter? }
Rank 3: Container
https://github.com/appwrite/appwrite/issues/2490 ohh I found the issue, still doesn't seem possible for now. Thanks in advance
Admin
Use an if statement
Rank 3: Container
Right, that's what I'm going to do for the moment for the hackathon. Thanks and regards
Rank 3: Container
[SOLVED] Realtime query
Moderator
Isn't that possible to achieve that by:
Moderator
It seems that this makes your app listen to all changes made in the database at once? (not only the ones with the attribute?)
Admin
there is no attribute channel. plus the attribute event is an update on the collection, not the document