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

MongooseModule forRootAsync doesn't connect to mongo #32

Closed
m3bwc opened this issue Feb 27, 2019 · 2 comments
Closed

MongooseModule forRootAsync doesn't connect to mongo #32

m3bwc opened this issue Feb 27, 2019 · 2 comments

Comments

@m3bwc
Copy link

m3bwc commented Feb 27, 2019

I'm submitting a...


[ ] Regression 
[X] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.

Current behavior

MongooseModule.forRootAsync doesn't connect to mongodb when we use useFactory

Expected behavior

MongooseModule.forRootAsync should be connect to mongodb when we use useFactory

Minimal reproduction of the problem with instructions


MongooseModule.forRootAsync({
  useFactory: () => ({
    uri: 'mongodb://localhost/nest',
  }),
})

What is the motivation / use case for changing the behavior?

Environment


"@nestjs/common": "^5.7.3",
"@nestjs/core": "^5.4.1",
"@nestjs/jwt": "^0.3.0",
"@nestjs/mongoose": "5.2.2",
"rxjs": "^6.2.2",
 
For Tooling issues:
- Node version: v11.9.0  
- Platform: Linux


@kamilmysliwiec
Copy link
Member

I can't reproduce your issue. Please, provide a minimal repository which reproduces your problem.

@andredezzy

This comment was marked as spam.

@nestjs nestjs locked and limited conversation to collaborators Aug 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants