I’ve created a favorite icon so that user’s can favorite a particular news source they enjoy reading (and then only be exposed to those articles on a separate screen).
When I leave the screen from here, however, the app won’t remember I pressed the toggle, so the user will still have no favorited sources, and when i return I see this:
You can create a relationship in your news collection between Users many to many (Favourite Users) and go to the Users collection change the name of the relationship property that has been created as like Favorite News( Otherwise you will get confuse) and set the action on the toggle Current news > Favourite users > Includes logged in user.
It says favorite source includes current source. I don’t know your dB setup but I’d expect this to say favorite source includes logged in user. It should be toggling something to do with logged in user