Using a transaction ref I can update multiple documents by creating an array/list of Write objects and then doing a CommitRequest.
However I can find no way of creating new documents within the transaction? firestoreApi.projects.databases.documents.createDocument(...) Doesn't provide have a transaction parameter. Write seems to for updating documents and not creating new ones.