Hi,
I’ve been stuck on this for 2 weeks
I have a two state chip list component that lists types of chocolates available for user to select.
DATABASE
I have 2 Databases. 1 for Users, 1 for Chocolates
User can only have one type of chocolate, But Chocolate can have many Users’
Issue with this is, that I can only add action ( Update LoggedInUser ) to add the single chocolate, but on toggle off action, I see no option to remove the current chocolate from logged in user.
In both Toggle on and Off, I can only add the chocolate to LoggedInUser.
If I try to remove loggedInUser from the Relational Users column in Chocolate, I see this.
–
I tried many 2 many relation
That allows me to add and remove users from both databases, but a new problem occurs.
As it’s single chip, when I select another chip, it doesn’t toggle off the old one ( thus it doesn’t remove the user from chocolate db ).