Is there a way to get the current document ID? Because I am trying to update a document field line.
The answer to do this is:
doc_ref = db.collection(u'ENTER THE COLLECTION NAME').document()
id = doc_ref.id
Is there a way to get the current document id in cloud firestore database using python?