You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't think the library handles empty documents like that. I'm curious to a valid use case, @zhezhang77.
An empty document in the database indicates that a site exists but has no record right now.
I understand that I can change the fields definition of the document to avoid creating an empty one, but it's a risky action to upgrade the whole database and codes in other clients (Python, C#, etc).
Since there is no restriction to create an empty document on all platforms including FirestoreApp, I think it is reasonable to read that document out without throwing any errors.
Minimal code to reproduce the problem
Create an empty document (no fields) in the firestore "test_col/test_doc"
Expected Behavior
'data' should be valid and 'data.obj' = {}
Actual Results
Get the error message when calling 'getDocument':
Library Version:
v33
The text was updated successfully, but these errors were encountered: