kpfromer / nestjs-typegoose

Typegoose with NestJS
https://kpfromer.github.io/nestjs-typegoose/
MIT License
289 stars 71 forks source link

Multitenancy #220

Open constantinoschristoforou opened 4 years ago

constantinoschristoforou commented 4 years ago

I am trying to build multitenancy functionality, each tenant will have its own database. Is this possible to create dynamically the connections using typegoose?

In the documentation as I can understand you can have multiple connections but are declared static.

Any help would be appreciated

kpfromer commented 4 years ago

You currently can not dynamically create the connections. I will take a look at this more when I get the time, but at a quick glance, I am unsure if nestjs support on the fly module creation.

wxs77577 commented 3 years ago

Same request, both document-based and db-based multi-tenancy needed. If not, could you please gave some suggestions?

grvrjt commented 2 years ago

I am trying to implement the same with typegoose but doesn't work . with mongoose it works.