Created
July 23, 2020 19:17
-
-
Save schmidt-sebastian/402b0eddd96efd3267632220673fc89b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const doc = firestore('doc/a'); | |
runTransaction(await t => { | |
t.get(); | |
// Note: This is bad practice, but here we update `doc` inside of the transaciton | |
// but not using the transaction API. This update will fail with ABORTED. | |
await doc.set({}); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment