Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はマングース接続を持っていますが、プログラムのある時点でそれを閉じる必要があります。マングースオブジェクトを数回ログに記録した後、次のことが機能することがわかりました
mongoose.connection.base.connections[1].close();
これを行うためのよりクリーンな方法はありますか?