Skip to content

[V3] Enhancement - support ref.parent with snapshot #185

Closed
@florianbepunkt

Description

@florianbepunkt

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
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions