Closed
Description
I noticed that you can't get the parent of a reference as in JS SDK: https://firebase.google.com/docs/reference/js/firebase.database.Reference#parent
in my specific case I need to get the parent path/key from a snapshot, which in JS SDK I would do liek this
function (snapshot) {
snapshot.ref().parent().key;
}
EDIT: To clarify… when I have a normal database ref, getting the key of the parent works. but not with a snapshot.
Metadata
Metadata
Assignees
Labels
No labels