@stagg/mdb
v0.8.9
Published
Provided by [Stagg.co](https://stagg.co)
Downloads
4
Readme
Stagg MongoDB Integration
Provided by Stagg.co
Getting Started
Install the package
yarn install @stagg/mdb
Configure the connection on startup (only done once).
import * as mdb from '@stagg/mdb'
(async () => {
mdb.config({ host, user, password })
const db = await mdb.client('dbName')
// ... do stuff
})()
In any subsequent requests, only the client needs to be fetched.
import * as mdb from '@stagg/mdb'
(async () => {
const db = await mdb.client('dbName')
// ... do stuff
})()
The config interface can be found in <PKG>.config
export interface Config {
host:string
user:string
password:string
}
Call of Duty
Currently supports Warzone