NestJS - Database with TypeORM
What will happen if you call
TypeOrmModule.forRoot() twice with different configurations in the same NestJS app?TypeOrmModule.forRoot() twice with different configurations in the same NestJS app?forRoot() sets up a global database connection. Calling it twice causes conflict.
NestJS throws an error because multiple root connections are not allowed by default.
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions