Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Closed
Assignees
Milestone
@florianbepunkt

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

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    AltStyle によって変換されたページ (->オリジナル) /