-
Notifications
You must be signed in to change notification settings - Fork 894
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
DocumentReference from QueryDocumentSnapshot in model converter not typed correctly. #4278
Comments
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight. |
I've confirmed this issue and it is indeed a bug. I'm working on a fix. In the meantime, your workaround makes perfect sense. |
This also happens with admin.firestore by the way. Not sure if the projects are related or if I should make another issue ticket. |
If this bug is also happening with the admin sdk then it can't possibly be the same root cause. Please open a new ticket for it. |
FYI the fix for this bug was released in version 8.2.4 on January 21, 2021: https://firebase.google.com/support/release-notes/js#version_824_-_january_21_2021 |
[REQUIRED] Describe your environment
[REQUIRED] Describe the problem
When trying to save the DocumentReference from the QueryDocumentSnapshot in the ModelConverter.fromFirestore function. The resulting document reference object is missing several fields.
Steps to reproduce:
See code below:
Relevant Code:
Runtime output:
Instead I have to do:
The text was updated successfully, but these errors were encountered: