I'm new to Nest JS. I wanted to create and manage dynamic mongo db. My context is, i have a main db 'clients' and for my each client, i have separate dbs. The thing is, while initialising the mongo db in nest, i have to first initialise the main db and then with the values of main db, i have to create/connect to corresponding dynamic dbs. I don't know how to achieve this. And also, i don't know how to access those dbs in modules and service.
It will be nice if someone helps me with this. Thanks in advance.