open-index/open-npm huggingface dataset:
npm package: @stagg/mdb
Description: Provided by [Stagg.co](https://stagg.co)
Latest version: 0.8.9

# Stagg MongoDB Integration

Provided by [Stagg.co](https://stagg.co)

## Getting Started

Install the package

```
yarn install @stagg/mdb
```

Configure the connection on startup (only done once).

```typescript
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.


```typescript
import * as mdb from '@stagg/mdb'
(async () => {
    const db = await mdb.client('dbName')
    // ... do stuff
})()
```

The config interface can be found in `<PKG>.config`

```typescript
export interface Config {
    host:string
    user:string
    password:string
}
```

### Call of Duty

Currently supports Warzone
npm package: @stagg/mongo
Description: Provided by [Stagg.co](https://stagg.co)
Latest version: 0.2.2

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