#cache db connecton with useDb (nestjs-mongoose)

1 messages · Page 1 of 1 (latest)

dry charm
#

why nestjs-mongoose don`t support mongoose useDb options to cache connection for db and make dynamic connection without closing old connection and iniatialize new one
#606125380817911828 #1025201603843719200

broken ermine
#

👍

#

I want to cache the database connection during development because on every save my server restarts and server tries to connect MongoDB on the cloud, how can I overcome this.

toxic mural
#

You can't.

broken ermine
#

🙂 sad