0.0.39 • Published 6 years ago

@stagg/discord v0.0.39

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

Stagg MongoDB Integration

Provided by Stagg.co

Getting Started

Install the package

yarn install @stagg/mongo

Configure the connection on startup (only done once).

import * as Mongo from '@stagg/mongo'
(async () => {
    const cfg:Mongo.T.Config = {...}
    Mongo.Config(cfg)
    const db = await Mongo.Client()
    // ... do stuff
})()

In any subsequent requests, only the client needs to be fetched.

import * as Mongo from '@stagg/mongo'
(async () => {
    const db = await Mongo.Client()
    // ... do stuff
})()

The config interface can be found in <PKG>.T.Config

export namespace T {
    export interface Config {
        db:string
        host:string
        user:string
        password:string
    }
}

Call of Duty

Currently supports Warzone

0.0.39

6 years ago

0.0.37

6 years ago

0.0.34

6 years ago

0.0.35

6 years ago

0.0.36

6 years ago

0.0.31

6 years ago

0.0.32

6 years ago

0.0.33

6 years ago

0.0.30

6 years ago

0.0.26

6 years ago

0.0.27

6 years ago

0.0.28

6 years ago

0.0.29

6 years ago

0.0.25

6 years ago