-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Proposal: Optionally return a document ID on valueChanges()
when reading a single document
#2109
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
Comments
I'm amenable to this, any interest in putting together a PR? |
Sounds like a great opportunity to start contributing :) On my way with the PR |
We should also include in collectionGroup as well. Currently the documentation reads that idField can be used in valueChanges(), however it code currently expects 0 arguments |
@geogramdotcom Thanks for the comment, I thought that I checked that case too, but I might miss something. I will update PR if that's right |
Is the suggestion above available? I mean, how observe a single document? I am struggling to figure out how do it and add an idToken when using observing a collection? I would be grateful if someone can answer my question in https://stackoverflow.com/questions/61355351/angular-and-firestore-firebaseerror-missing-or-insufficient-permissions-how-a |
Should be addressed in |
Thanks to #1973 and #1976 (@codediodeio 🔥) the newest version of AngularFire allows to use
valueChanges()
in a way that it also maps the ID of the document to the document data that is being returned in addition to the document data itself.This currently only works when working with a
collection()
call.It may also be nice to do the same when reading a single
doc()
like so:The text was updated successfully, but these errors were encountered: