cloud_firestore: QueryDocumentSnapshot.data() should not be nullable #5458
Unanswered
NoamDev
asked this question in
Feature request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
queries by definition never return non existent documents, therefore data() should not be nullable.
This is also the case in typescript firestore library as can be seen here https://github.com/firebase/firebase-js-sdk/blob/master/packages/firestore-types/index.d.ts#L319-L325.
Beta Was this translation helpful? Give feedback.
All reactions