docs: query-runner.md typos (#9228)

This commit is contained in:
Mihai Crisan 2022-08-24 19:44:52 +03:00 committed by GitHub
parent d8e5f3b086
commit 8dcd61e0a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,7 +34,7 @@ await queryRunner.release()
After connection is released it is not possible to use the query runner methods.
`QueryRunner` has bunch of methods you can use, it also has it's own `EntityManager` instance,
`QueryRunner` has bunch of methods you can use, it also has its own `EntityManager` instance,
which you can use through `manager` property in order to run `EntityManager` methods on a particular database connection
used by `QueryRunner` instance:
@ -44,7 +44,7 @@ const queryRunner = connection.createQueryRunner()
// take a connection from the connection pool
await queryRunner.connect()
// use this particular connection to execut queries
// use this particular connection to execute queries
const users = await queryRunner.manager.find(User)
// don't forget to release connection after you are done using it