loopback.io icon indicating copy to clipboard operation
loopback.io copied to clipboard

docs(typeorm): add info for registering connection

Open bhavyasf opened this issue 3 years ago • 1 comments

I tried using @loopback/typeorm locally and suddenly getting an error because connection was not coming Then I got an idea to register the connection somewhere in application.ts which was also missing in the doc. Hence the PR.

Signed-off-by: bhavyasf [email protected]

bhavyasf avatar Sep 10 '22 08:09 bhavyasf

Hi @bhavyasf, thanks for the PR!

Unfortunately LB4 docs are not edited here, but rather at https://github.com/loopbackio/loopback-next/tree/master/extensions/typeorm/README.md.

In addition, there is also a TypeORM Connection Booter which means this manual registration should not be necessary:

https://github.com/loopbackio/loopback-next/blob/master/extensions/typeorm/src/typeorm-connection.booter.ts#L69

achrinza avatar Sep 10 '22 15:09 achrinza

closing this PR per the above comment.

dhmlau avatar Oct 24 '22 18:10 dhmlau