collectionTransaction static method
Outputs the builder to be written by the transaction.
Basically, it writes and deletes data for collectionPath
.
You can add the corresponding element by specifying linkedCollectionPath
.
Implementation
static FirestoreCollectionTransactionBuilder collectionTransaction({
required String collectionPath,
String? linkedCollectionPath,
}) {
return FirestoreCollectionTransactionBuilder._(
collectionPath: collectionPath,
linkedCollectionPath: linkedCollectionPath,
);
}