Hi I've been going around in circles trying to get my Firestore data into a Python 2 dictionary.
doc_ref = db.collection('things1').document('ref1').collection('things2').document('ref2')
doc = doc_ref.get()
gets me a DocumentSnapshot - I was hoping to get a dict. What's the proper way to create a dict from the results. Tried the docs and just end up with the object. Something dumb I'm (not) doing.
Thanks
You could use to_dict(). This should give you the dictionary of the result.
This worked for me.