0.0.39 • Published 5 years ago

@stagg/discord v0.0.39

Weekly downloads
-
License
-
Repository
-
Last release
5 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

5 years ago

0.0.37

5 years ago

0.0.34

5 years ago

0.0.35

5 years ago

0.0.36

5 years ago

0.0.31

5 years ago

0.0.32

5 years ago

0.0.33

5 years ago

0.0.30

5 years ago

0.0.26

5 years ago

0.0.27

5 years ago

0.0.28

5 years ago

0.0.29

5 years ago

0.0.25

5 years ago