I have a confusion regarding Firebase
observable
in angular
, here is structure
I want to watch all chats of particular user who logged in to my app, and I am seeing two option for achieve this.
Watch
/chats
node
which means logged user will get notification for allusers
chats
and I have to filter out loggeduser
chats
.Watch multiple
node
like/chats/chatId
,/chats/chatId
.... so on, In this loggeduser
will not get notification for allusers
chats
, It will only get their ownchats
notification.
So which one will be good or if something better than this Please let me know.