You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to connect to multiple databases using a single or multiple connection? typeorm docs suggests there is and it works with simple node project, but i cant configure it in this project.
I have changed the single connection from typeormLoader.ts to array.
The text was updated successfully, but these errors were encountered:
According to TypeORM docs, you can either use multiple connections by passing an array to the createConnection method, or in case you want to work with just one connection check:
You'll have to specify which database you want to connect and work with in your entities, and very likely in some other places as you keep adding business logic into your Services and Repositories.
Is there a way to connect to multiple databases using a single or multiple connection? typeorm docs suggests there is and it works with simple node project, but i cant configure it in this project.
I have changed the single connection from typeormLoader.ts to array.
The text was updated successfully, but these errors were encountered: