Hi, I am not a programmer so I may not be using terms correctly but I’ll try my best. I am stuck at this point in making my MVP app. Essentially, I have 2 collections: Employees and Locations. I have a screen where users can add locations to a list and same thing with employees.
Users can then click a location and then click “associate employee” which will bring up a list of employees with a toggle button on the list. The point of this is that a user can view employees and click the toggle button to associate them with the particular location address.
The above is where I am stuck. I am not sure how to associate employees with locations through the toggle button. In the database, in the employees and locations collection, I created a many-to-many relationship where it said “A Location can have multiple Employees / A Employee can have multiple Locations”. This is definitely going in the right direction but when I toggle the employee, it doesn’t show up in the previous page (see screenshot for these two pages). I also put another screenshot showing how I modified the toggle.
This is showing how I configured the toggle button. I only had one option to pick from.