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

makeDocumentSnapshot check wrong option names. #79

Open
rharter opened this issue Nov 23, 2020 · 3 comments · Fixed by googleapis/nodejs-firestore#1728 · May be fixed by #80
Open

makeDocumentSnapshot check wrong option names. #79

rharter opened this issue Nov 23, 2020 · 3 comments · Fixed by googleapis/nodejs-firestore#1728 · May be fixed by #80
Labels
type: bug Something isn't working

Comments

@rharter
Copy link

rharter commented Nov 23, 2020

makeDocumentSnapshot checks the options to see if there is an app property, but DocumentSnapshotOptions calls it firebaseApp. This leads to some weird casting requirements to use makeDocumentSnapshot with your own initialized app.

This issue is here.

if (has(options, 'app')) {

@tettoffensive
Copy link

@rharter Since your pull request is kinda in the same area as the issue I'm experiencing (and I'm not seeing any other activity here) I thought I'd ask if your experiencing what I'm seeing in #87 where makeDocumentSnapshot doesn't work because it's trying to use .snapshot_

@rharter
Copy link
Author

rharter commented Jan 5, 2021

I haven't run into that, but I'm also not using the function from a class implementation, I've been using it statically and passing in my app, so I can't say it's not related.

@tettoffensive
Copy link

Thanks. I tried it statically and get the same error. It seems to me that makeDocumentSnapshot relies on the Node.js Server SDK for Google Cloud Firestore. So it doesn't work when testing the Node.js client for Firestore despite what the documentation says.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
3 participants