docs: update deprecated naming (#11017)

Connection is deprecated, so updated naming 'connection' to 'dataSource'.
This commit is contained in:
임채성 2025-01-06 05:36:37 +09:00 committed by GitHub
parent 4f643a51af
commit 54bed9d56d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -39,7 +39,7 @@ which you can use through `manager` property in order to run `EntityManager` met
used by `QueryRunner` instance:
```typescript
const queryRunner = connection.createQueryRunner()
const queryRunner = dataSource.createQueryRunner()
// take a connection from the connection pool
await queryRunner.connect()