I’m creating an app where I need to match two random users from my Firebase Database. My issue is that I'm not sure how to retrieve the list of users actively searching for a match. Here's how my database structure looks like:
I'm looking to read the list of users searching for a match and compare match preferences to randomly match 2 users together. any suggestions on the syntax I should use to retrieve the list from Firebase Realtime Database to build the random matching logic?