How to create an array in the firebase 3.0 and perform the functions of append and delete in the array
This is the data structure i am looking for:-
1-UserIds
--0.) 12345
--1.) 678910
--2.) 1112131415
2-UserProfile
--0.) 12345
-0.) userName : "Rayega"
-1.) friends : ["Julian","Mary","Powers"]
--1.) 678910
-0.) userName : "Morse"
-1.) friends : ["Polme","Mary","Finn"]
--2.) 1112131415
-0.) userName : "Tanya"
-1.) friends : ["Ester","Hulio","Julian"]
i want to create an array like UserIds and like friends in every child of my user profile and be able to append and delete data from those arrays.I know how to create a dictionary but how would i go around storing an array in that dictionary and be able to perform append and delete functions in it.
I am storing UserIds array because i need to display info of every user in a tableView.