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

Add document ref as readonly to document #324

Closed
hamishjohnson opened this issue Aug 1, 2019 · 2 comments
Closed

Add document ref as readonly to document #324

hamishjohnson opened this issue Aug 1, 2019 · 2 comments

Comments

@hamishjohnson
Copy link

You can use this.$firestoreRefs to get the refs of documents.

I think it would be cleaner to use ref as a non-enumerable, read-only property like the ID. I would suggest that using the dollar syntax would avoid conflicts.

So then you can access the ref by doc.$ref

@posva
Copy link
Member

posva commented Aug 1, 2019

Duplicate of #180

@posva posva marked this as a duplicate of #180 Aug 1, 2019
@posva posva closed this as completed Aug 1, 2019
@posva
Copy link
Member

posva commented Aug 1, 2019

FYI this can be achieved already in userland, as commented in the issue

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

2 participants