koa-mongo-db
Get db connection in context
Install
$ npm install --save koa-mongo-db
Usage
use version 1 for koa 1
var app = ; var koaMongoDb = ;app; app;
API
koaMongoDb(uri, [options])
uri
Required
Type: string
options
All options from MongoClient are accepted as well.
property
Type: String
Default: db
Property on request
object in which db connection will be stored.
License
MIT
Thanks to floatdrop for the original express-mongo-db.