I have Room object that has some properties like Title and Description. It also has a property called Players which is a string array of users uids.
In Firestore, I've set Players as a subcollection of my Room document.
I get Room data by using this:
getRooms(): Observable<Room[]> {
return this._db.collection<Room>('rooms').valueChanges();
}();
When I subscribe to this, it of curse, does not know if something happened in the Players subcollection.
Is there a way I can add some code to also listen for the changes in the Players subcollection.
Ideally, I would like to subscribe once and listen for changes in either my Rooms/Room Document or in my Rooms/Room/Players subcollection.
Playersbe aRoomproperty but I've changed my approach and made it a subcollection so now I have to deal with this hurdle :) - user8360241