How to retrieve data from Firebase Database with join if key only return true?
问题 I want to ask how to retrieve group that only user2 join in Android? "users": { "user1": { "name": "User 1" }, "user2": { "name": "User 2" } } "groups": { "groupA": { "name": "A Group" }, "groupB": { "name": "B Group" } } "userGroup": { "user1": { "groupA": true, "groupB": true }, "user2": { "groupB": true } } I already try DatabaseReference userGroupRef = rootRef.child("userGroup/user2") but cannot show the name of the groups But if I use DatabaseReference groupsRef = rootRef.child("groups")