I’m having some issues updating the User relationship with another object in a collection of locations.
When users are first setting up their profile after signing up they are prompted to select a home location.
Once they open up the list of locations on another page, they can select a location and are given the choice to make the current location their home location.
Here’s the issue. Im not sure how to update the user(not given the choice), and for the properties I am given the choice to update, it updates the user’s home location with the page’s current location, instead of just switching the location with another, its overwriting the users home location with current page info, and ultimately overwriting the location associated with the user in the locations collection.
Any idea how I would or should go about fixing this?