---
lang: en
title: 'API docs: repository.transactionalrepository.begintransaction'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/repository
permalink: /doc/en/lb4/apidocs.repository.transactionalrepository.begintransaction.html
---

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

[Home](./index.md) &gt; [@loopback/repository](./repository.md) &gt; [TransactionalRepository](./repository.transactionalrepository.md) &gt; [beginTransaction](./repository.transactionalrepository.begintransaction.md)

## TransactionalRepository.beginTransaction() method

Begin a new Transaction

<b>Signature:</b>

```typescript
beginTransaction(options?: IsolationLevel | Options): Promise<Transaction>;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  options | [IsolationLevel](./repository.isolationlevel.md) \| [Options](./repository.options.md) | Options for the operations |

<b>Returns:</b>

Promise&lt;[Transaction](./repository.transaction.md)<!-- -->&gt;

Promise<Transaction> Promise that resolves to a new Transaction object


