@gunbir007

There are several ways to do this. One of which would be to have the following fields in your User data type:

  • Matched Users (list of Users)
  • Liked Users (list of Users)

Whenever User1 ‘likes’ User2:

  • if User1 is in User2’s Liked Users --> add User2 to User1’s Matched Users, and add User1 to User2’s Matched Users
  • if User1 is not in User2’s Liked Users --> add User2 to User1’s Liked Users

Hope that helps a bit
Ambroise

Need extra help?

Book a free 15 minutes call - happy to help if I can