Please mark this post as SOLVED or CLOSED if no further help is needed.
issue in RealTime listening
Votes
0
Replies
24
Participants
Unknown
Messages
25
Rank 3: Container
Hi, I will once done
Rank 3: Container
@Binyamin
Rank 3: Container
hey, I needed some clarification
Rank 3: Container
if you are available
please feel free to post your doubts
Rank 3: Container
``
Rank 3: Container
final sunscription = _realtime.subscribe([
'databases.${AppwriteConstants.databaseId}.collections.${AppwriteConstants.chatsCollection}.documents.'
]);
Rank 3: Container
hi how can I look for a particular field inside this document?
When you get the event, you'll get the document.
final realtime = Realtime(client);
final subscription = realtime.subscribe(['databases.${AppwriteConstants.databaseId}.collections.${AppwriteConstants.chatsCollection}.documents']);
subscription.stream.listen((response) { final doc = response.payload; print(doc); });Rank 3: Container
@Binyamin brother would please have a look at my project?
What part?
Can you share it here?
Rank 3: Container
3 4 file spaning files
Rank 3: Container
i mean code is spread accress 3 4 files
Rank 3: Container
@Binyamin
Rank 3: Container
Rank 3: Container
final sunscription = _realtime.subscribe([ 'databases.${AppwriteConstants.databaseId}.collections.${AppwriteConstants.chatsCollection}.documents.' ]);
Rank 3: Container
inside of this
You can send all thale parts
I'll be able to check on them later
Rank 3: Container
'databases.${AppwriteConstants.databaseId}.collections.${AppwriteConstants.chatsCollection}.documents.' I want to perforn .contains('conversationId')
You don't need the . at the end
Rank 3: Container
okay, but I want to only get the documents that contains a particular value