Trying to figure out the best way to showcase a user's friend list using this database structure:
friendships:
user1
- user3: true
- user4: true
user2
- user1: true
- user5: true
I'm wondering how to display the users data from their specific "userX" node based on their unique uid (which serves as the key in this example).
For user1, I want to show a list of friends including user3 and user4, along with their username and profilePic. Finding an efficient solution is challenging, as downloading the entire "users" node and matching uids for each user would lead to unnecessary downloads and expenses.
Any suggestions or ideas are greatly appreciated!