Hey there i am trying to get the random generated key of datasets from a firebase. like this:
projects ---12345 ---67890 ...
i just would like to get the key and safe it to another part in the Database.
I tried that: but it gives me everything under the node.
getKEY(){
firebase.database().ref('project').once('value', function(snapshot) {
console.log("Key" + JSON.stringify(snapshot.val()) )
});
}
can some one help me out with that? How to get only the Key generated by firebase?
i would like to get these Keys and save it to another dataset but i don't know how to access them?