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

Add controllers dynamically #4373

Closed
Disane87 opened this issue Mar 21, 2020 · 5 comments
Closed

Add controllers dynamically #4373

Disane87 opened this issue Mar 21, 2020 · 5 comments

Comments

@Disane87
Copy link

Hey guys, is it possible to add controllers (with display in swagger) dynamically? I want to create asystem with headless CMS functionality where users can design their own tables and queries, but for this, I need the ability to create (virtual) controllers by document structure in my mondodb.

@IzioDev
Copy link

IzioDev commented Mar 21, 2020

Hi, please, next time wait a bit longer on Discord. I saw you asked this question, but Github should contains bugs or feature request only. https://docs.nestjs.com/modules#dynamic-modules.

Use the documentation search bar :)

@Disane87
Copy link
Author

Disane87 commented Mar 21, 2020

Hey, sorry! I already studied the docs about this and I know how the dynamic modules work, but I need a way to create controllers at runtime (or in bootstrapping time). I really not know how dynamic modules can solve this.

Sorry if my question wasn‘t declarative enough.

The design of the document collections in the mongodb is at runtime and not before. A user can dynamically change collection while running the application, so there is not developer needed.

@kamilmysliwiec
Copy link
Member

Duplicate of #1438

@kamilmysliwiec kamilmysliwiec marked this as a duplicate of #1438 Mar 21, 2020
@lock
Copy link

lock bot commented Jun 24, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

1 similar comment
@lock
Copy link

lock bot commented Jun 24, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants