I am trying to set up the deck swiper component to actually use it for a tinder-like app.
I have the user collection, a “Yes” collection and a “Nope” collection.
Both the yes and the no collections have a many to many relationship with the user collection, since every yes can have multiple users and every users can have multiple yes.
And yet, once I swipe (i.e.: left, meaning that should go on the nope collection), the name actually goes on the nope collection, but the relationship does not work, therefore I am not able to see who swiped left on that card, I can only see the “swiped left” person.
You should not need seperate collections for the “answer” of a card on the deck swiper. Merely what you want to do is create a relationship within that own collection.
For example for a tinder like experience you would create a relationship on the user collection for
“Liked By” - set by the logged in user
“Disliked By” - set by the logged in user
“Likes” - set by if the user selects “yes”
“Dislikes” - set by if the user selects “no”
“Reacted by” - set by logged in user
5 is critical in order to tell the deck swiper that it should not show users who have been “reacted by” the logged in user. That way they will not be displayed after a user has swiped them.