lmcq / firebase-firestorm

Firebase Firestorm is an ORM for Firestore which can be used with Typescript.
MIT License
252 stars 19 forks source link

When getting document by id and the document doesn't exist; Serialization fails #17

Open zacharyrote opened 4 years ago

zacharyrote commented 4 years ago

Use case; Find resource by id where id is not a field in the document but the key of the document.

Collection(MyData).doc(docId).get().then(doc => { ... })

If the document doesn't exist; Firestorm still tries to serialize an undefined.