ive built a chat app, when i pull inboxes, i want to listen to changes to those inboxes. can i add a query to the a subscription, or i have to create a subscription for each inbox, and how can i unsubscribe?
TL;DR
Developers want to create real-time subscriptions for specific documents in their chat app. They are wondering if they can add a query to a subscription or if they need to create separate subscriptions for each document. They also want to know how to unsubscribe from these subscriptions.
Solution: Developers can add a query to a subscription to listen to changes in specific documents. To unsubscribe, they simply need to remove the corresponding subscription.