Well, I am new to Firebase and I want to have my own keys while pushing new data to database.
Problem:
FireBase.push().setValue(mapped_values);
As an update to the top answer, the Firebase API has been changed and setValue() does not work anymore. Now you must use the set() function instead:
setValue()
set()
ref.child("Victor").set("setting custom key when pushing new data to firebase database");