DEV Community

Discussion on: Create a multi-tenant application in Nest.js Part 3 (multi-database setup)

Collapse
 
andycharles6 profile image
andycharles6

Is it going to create a new connection for each request and destroy it after the request?

Collapse
 
ismaeil_shajar profile image
ismaeil-shajar

you are right I fix this and update post

Collapse
 
ismaeil_shajar profile image
Info Comment hidden by post author - thread only visible in this permalink
ismaeil-shajar

yes because the injection scope is set to SINGLETON you can read more about in docs.nestjs.com/fundamentals/injec...

Some comments have been hidden by the post's author - find out more