@condor-labs/mongodb
Advanced tools
Comparing version 1.0.5 to 1.0.6
{ | ||
"name": "@condor-labs/mongodb", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "This module provide and usefull helper to use mongoose library.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -78,8 +78,7 @@ This module provide and usefull helper to use mongoose library. | ||
(async () => { | ||
// Get Mongo client instance (SKIP CONNECTION TO HOST) | ||
let client = mongodb.getClient(false); | ||
console.log(`isConnected(before): ${mongodb._isConnected()}`); | ||
// Get Mongo client instance (SKIP CONNECTION TO HOST) | ||
let client = mongodb.getClient(skipConnection = true); | ||
console.log(`isConnected(after): ${mongodb._isConnected()}`); | ||
// PREPARE MODEL | ||
@@ -86,0 +85,0 @@ let Schema = client.Schema; |
15849
154