mdowds / python-mock-firestore

In-memory implementation of Google Cloud Firestore for use in tests
MIT License
74 stars 61 forks source link

How to start a transaction? #50

Open poiuytrez opened 3 years ago

poiuytrez commented 3 years ago

Most of the code snippets on how to use a transaction use the decorator @firestore.transactional. What is the proper way to use the transactions with this mock?

Official documentation: https://github.com/GoogleCloudPlatform/python-docs-samples/blob/5238ce34cb92b58ddaa2019706caacfa4d7a2009/firestore/cloud-client/snippets.py#L414

ignasbol commented 1 year ago

I am looking into this as well. @poiuytrez were you able to find an answer?