diff --git a/src/transaction.ts b/src/transaction.ts index ef9700f..687285d 100644 --- a/src/transaction.ts +++ b/src/transaction.ts @@ -129,6 +129,16 @@ export class Transaction { return this } + /** + * Get the list of pending transact items. + */ + public getTransactItems(): TransactWriteItem[] { + return this.list + } + + /** + * Commit all the pending transact items to DynamoDB. + */ public async commit(): Promise { return await transactWrite(this.dynamo, this.list) }