transaction method

  1. @override
RuntimeCollectionTransactionBuilder transaction([
  1. String? linkedCollectionPath
])
override

Generate a Transaction for this collection.

Please note that the file will not be saved unless you execute save after it has been executed.

Specifying linkedCollectionPath allows you to simultaneously create linked documents (e.g., follow and follower documents).

Implementation

@override
RuntimeCollectionTransactionBuilder transaction([
  String? linkedCollectionPath,
]) {
  return RuntimeTransaction.collectionTransaction(
    collectionPath: path,
    linkedCollectionPath: linkedCollectionPath,
  );
}