nestjs / mongoose

Mongoose module for Nest framework (node.js) 🍸
https://nestjs.com
MIT License
530 stars 118 forks source link

allow nestjs application to start even if MongoDB is temporarily unavailable. #2216

Closed vanHuong0202 closed 3 months ago

vanHuong0202 commented 4 months ago

Is there an existing issue for this?

Current behavior

i am using nestjs with mongo db as secondary db, the issue is that if the mongo is temp unavailable, the nestjs app can not start and can not use other modules. So have any way or config that still allow the nestjs app can continue without nest/mongo module ?

Minimum reproduction code

not available

Steps to reproduce

No response

Expected behavior

Allow nestjs app can start if mongo serve is temp unavailable.

Package version

10.0.6

mongoose version

8.4.1

NestJS version

10.3.8

Node.js version

20

In which operating systems have you tested?

Other

No response

kamilmysliwiec commented 3 months ago

Thanks for your suggestion!

There are no plans to implement it in the foreseeable future.

If you think your request could live outside Nest's scope, we'd encourage you to collaborate with the community on publishing it as an open source package.