Tag: google cloud firestore

与Firestore崩溃

当我查询一个不存在的文档的集合时,我仍然返回一个非零对象,当我尝试调用documentSnapshot?.data()时崩溃。 返回的错误是"Document '<FSTDocumentKey: XXXXXX>' doesn't exist. Check document.exists to make sure the document exists before calling document.data.'"