Skip to content

Conversation

@bhavyasf
Copy link

@bhavyasf bhavyasf commented Sep 10, 2022

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 37434313+bhavyasf@users.noreply.github.com

Signed-off-by: bhavyasf <37434313+bhavyasf@users.noreply.github.com>
@achrinza
Copy link
Member

achrinza commented Sep 10, 2022

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

@dhmlau
Copy link
Member

dhmlau commented Oct 24, 2022

closing this PR per the above comment.

@dhmlau dhmlau closed this Oct 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants