@krknet/mongo-connector
v1.3.1
Published
## Usage
Downloads
2
Readme
MongoConnector
Usage
Peerdependency: @krknet/profiler
const Connection = require('@krknet/mongo-connector')
global.__db = new Connection({ url: global.__config.mongo, initiatiors: [] })
await global.__db.connect()
await global.__db.disconnect()
Options
{
initiatiors: [],
doLog: true,
url: '',
castIds: false
}
Functions
async connect ()
async disconnect ()
get ()