0.1.5 • Published 3 years ago

connect-to-mongodb-plugin v0.1.5

Weekly downloads
4
License
ISC
Repository
github
Last release
3 years ago

MongoDb plugin for wire.js

Installation

npm i connect-to-mongodb-plugin

Usage

bootstrap.js:

import connectToMongodbPlugin from 'connect-to-mongodb-plugin';

export default {
    $plugins: [
        connectToMongodbPlugin
    ],

    database: {
        connectToDatabase: {
            url: 'mongodb://localhost:27017/db_name'
        }
    }
}

Install wire from git://github.com/cujojs/wire.git#0.10.11 main.js:

import wire from 'wire';
import bootstrap from './bootstrap';

wire(bootstrap).then(context => {
    let { database } = context;

    /* do smth with database */

    context.destroy();
})
0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago