-
Notifications
You must be signed in to change notification settings - Fork 36
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
getDocParentId? #33
Comments
Hey, sorry for the long response. There's no easy way atm, but it should be easier to add. Right now you can parse the collection's path. You can access it via |
I see ok, thank you for the feedback. |
You're welcome. I'd like to keep the issue open, so I won't forget to add it. |
I found this tip useful! The path looks like this for a document in a subcollection named A simple |
Is there any progress? It would be good to have Firestore supports this: https://stackoverflow.com/a/56223319 |
@tianhuil hey! There has been no progress on the issue; however, it has become possible with the new v10 API. I will work on it when I have a chance. |
It seems like it would be very helpful for working with subcollections if there was a function in the API to fetch the parent ID of a document, unless there is already some easier way to do this that I am not aware of yet.
Thank you!
The text was updated successfully, but these errors were encountered: