---
lang: en
title: 'API docs: repository.transaction.commit'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
permalink: /doc/en/lb4/apidocs.repository.transaction.commit.html
---

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/repository](./repository.md) &gt; [Transaction](./repository.transaction.md) &gt; [commit](./repository.transaction.commit.md)

## Transaction.commit() method

Commit the transaction

<b>Signature:</b>

```typescript
commit(): Promise<void>;
```
<b>Returns:</b>

`Promise<void>`


