mirror of
https://github.com/typeorm/typeorm.git
synced 2025-12-08 21:26:23 +00:00
docs: update deprecated naming (#11017)
Connection is deprecated, so updated naming 'connection' to 'dataSource'.
This commit is contained in:
parent
4f643a51af
commit
54bed9d56d
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user