I want to take the currentUser's userId and add it as a child to all their friend's data- in Firebase with Swift
问题 In my Firebase database, the parent data is all the users' userId s. They each have a child("friends") which contains a list of all their friends' userId s. I want to get each currentUser 's friends' userId s and add the currentUser 's userId to each of their friends' child("closeFriends") node This is how my data structure looks: users 10XeC8j6OCcFTKj8Dm7lR7dVnkf1 email: "Dummy19@gmail.com" fcmToken: "cBW9XhpYqio:APA91bF6K5YgRj0PgyDCoApNpIWGO4icwFg..." friends ekFjYJU8OWTbYnQXVzhcxVE0wBP2: