【发布时间】:2018-03-02 21:06:48
【问题描述】:
您好,我一直在兜圈子,试图将我的 Firestore 数据放入 Python 2 字典中。
doc_ref = db.collection('things1').document('ref1').collection('things2').document('ref2')
doc = doc_ref.get()
给我一个 DocumentSnapshot - 我希望得到一个字典。从结果中创建字典的正确方法是什么。尝试了文档并最终得到了该对象。我正在(不)在做一些愚蠢的事情。
谢谢
【问题讨论】:
标签: python google-cloud-firestore