We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b74b97 commit 0ff1224Copy full SHA for 0ff1224
index.js
@@ -1,7 +1,10 @@
1
const mongoose = require('mongoose');
2
const mergeOptions = require('merge-options');
3
4
-const Connection = require('mongoose/lib/connection');
+//
5
+// NOTE: we have to use NativeConnection instead of MongooseConnection due to doClose not being exposed
6
7
+const Connection = require('mongoose/lib/drivers/node-mongodb-native/connection');
8
9
function log(fn, message, hideMeta) {
10
if (hideMeta) fn(message, { [hideMeta]: true });
0 commit comments