0.8.9 • Published 5 years ago

@stagg/mdb v0.8.9

Weekly downloads
-
License
-
Repository
-
Last release
5 years ago

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

0.8.9

5 years ago

0.8.8

5 years ago

0.8.7

5 years ago

0.8.6

5 years ago

0.8.5

5 years ago

0.8.4

5 years ago

0.8.3

5 years ago

0.8.2

5 years ago

0.8.1

5 years ago

0.8.0

5 years ago

0.7.0

5 years ago

0.6.3

5 years ago

0.6.1

5 years ago

0.6.0

5 years ago

0.5.0

5 years ago

0.4.1

5 years ago

0.4.0

5 years ago

0.3.0

5 years ago