I have a firestore like this
ppl (collection)
1 (document)
school(collection)
jhdsfjhdsgfjh (random generated document)
jobname(collection field)
teacher:1 (collection field1)
advisor:2 (collection field2)
I want to extract teacher and advisor in a JSON file but I am not able to
my code so far:
doc_ref = db.collection(u'ppl').document('1')
doc = doc_ref.get
docuout = doc_ref.collection('school').document().collection().stream()
document_output=docuout.to_dict()
it's returning an empty document_output. Any idea how to fix it ?