@ydv/mongo
Advanced tools
Comparing version 1.1.0 to 1.1.1
const omit = require('lodash/omit') | ||
const once = require('lodash/once') | ||
const mongoose = require('mongoose') | ||
let _mongoUrl | ||
exports.db = mongoose | ||
exports.setMongoUrl = url => { | ||
_mongoUrl = url | ||
} | ||
exports.connect = once(url => mongoose.connect(url || _mongoUrl)) | ||
exports.Types = mongoose.Schema.Types | ||
@@ -7,0 +16,0 @@ |
{ | ||
"name": "@ydv/mongo", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"repository": "YottaDV/mongo", | ||
@@ -5,0 +5,0 @@ "scripts": { |
1804
37