I am building an app that tracks your pet's health and I am looking to add a feature that lets you switch between pet A and pet B.
I want this to behave similar to how instagram does, where you have 1 login and then can switch between accounts. The app stays the same but the data associated with each profile is the only thing that changes.
Here's my best idea - in my user collection I could have petA: petB: and currentPet: When a user switches between pets, it updates the currentPet. Then when showing any data I could use a conditional based on currentPet, so currentPet would have to = petA or petB and show documents accordingly.
Does this make sense? Is there a better way?