Joins in the Firebase Database
问题 The firebase data structure is { "eventAttendees" : { "fm" : { "1" : "David", "2" : "Alice" } }, "events" : { "fm" : { "date" : "2017-06-16", "name" : "Firebase Meetup" }, "gm" : { "date" : "2017-08-12", "name" : "Meet Linh" } }, "users" : { "1" : { "email" : "david@gmail.com", "name" : "David" }, "2" : { "email" : "alice@gmail.com", "name" : "Alice" }, "10" : { "email" : "khanh@gmail.com", "name" : "Khanh" } } } I want to find all users who go to fm event. Here is my code: let ref = Database