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

Use with nestjs moongose module #557

Open
olawalejuwonm opened this issue Jul 22, 2024 · 3 comments
Open

Use with nestjs moongose module #557

olawalejuwonm opened this issue Jul 22, 2024 · 3 comments

Comments

@olawalejuwonm
Copy link

I already have a project using nestjs mongoose default module.

Is there a way that I can keep that and add this module?

@smolinari
Copy link
Member

@olawalejuwonm - Sorry I haven't answered sooner.

The nestjs-typegoose module is a replacement for the Nest mongoose module. Theoretically, you could instantiate both, but give the services you create different names. Not sure that would help you though.

Scott

@olawalejuwonm
Copy link
Author

I'll appreciate it if you can please give a sample code snippet

@smolinari
Copy link
Member

Code snippet of what? Using both modules? If yes, just follow the directions for each one and create services for calling the models created from each module.

Scott

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

2 participants