From 43337e3165be1ac3b5c152f281ca52932fd8ea3b Mon Sep 17 00:00:00 2001 From: Henrique Caltram Date: Thu, 18 Sep 2025 06:53:27 -0300 Subject: [PATCH] docs: fix TypeORM Transactions section TypeORM links --- content/techniques/sql.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/techniques/sql.md b/content/techniques/sql.md index cca06f862a..512f7be540 100644 --- a/content/techniques/sql.md +++ b/content/techniques/sql.md @@ -383,7 +383,7 @@ export class UsersModule {} A database transaction symbolizes a unit of work performed within a database management system against a database, and treated in a coherent and reliable way independent of other transactions. A transaction generally represents any change in a database ([learn more](https://en.wikipedia.org/wiki/Database_transaction)). -There are many different strategies to handle [TypeORM transactions](https://typeorm.io/#/transactions). We recommend using the `QueryRunner` class because it gives full control over the transaction. +There are many different strategies to handle [TypeORM transactions](https://typeorm.io/docs/advanced-topics/transactions/). We recommend using the `QueryRunner` class because it gives full control over the transaction. First, we need to inject the `DataSource` object into a class in the normal way: @@ -423,7 +423,7 @@ async createMany(users: User[]) { -Alternatively, you can use the callback-style approach with the `transaction` method of the `DataSource` object ([read more](https://typeorm.io/#/transactions/creating-and-using-transactions)). +Alternatively, you can use the callback-style approach with the `transaction` method of the `DataSource` object ([read more](https://typeorm.io/docs/advanced-topics/transactions/#creating-and-using-transactions)). ```typescript async createMany(users: User[]) {