Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Firestore Mixin] - Access to the snapshot #328

Open
JaySunSyn opened this issue Mar 1, 2018 · 0 comments
Open

[Firestore Mixin] - Access to the snapshot #328

JaySunSyn opened this issue Mar 1, 2018 · 0 comments

Comments

@JaySunSyn
Copy link

Description

The firebase-firestore-mixin strips away the snapshots, only returning the data.
In my case, I want to fetch subcollections and need the path of a document which I could get from the snapshot.

Expected outcome

{__id__: "7nomMy2fdYrRSag3WbVC", __snap__: {q: t, x: t, et: t, nt: false}, data: "xyz"}

So I can get the pathvia __snap__.ref.path

Actual outcome

{__id__: "7nomMy2fdYrRSag3WbVC", data: "xyz"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant