Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multitenancy #220

Open
constantinoschristoforou opened this issue Jun 2, 2020 · 3 comments
Open

Multitenancy #220

constantinoschristoforou opened this issue Jun 2, 2020 · 3 comments

Comments

@constantinoschristoforou

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
Copy link
Owner

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
Copy link

wxs77577 commented Aug 7, 2020

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

@grvrjt
Copy link

grvrjt commented Jul 10, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants