5.0.0 • Published 10 years ago

dragonnodejs-mongodb v5.0.0

Weekly downloads
37
License
MIT
Repository
github
Last release
10 years ago

DragonNode.js MongoDB

Bundle with services to develop applications with MongoDB

  • Initialize db service with the MongoDB connection and the toObjectID converter
  • Bind collections with indexes for the db service

Installation

  • Run npm install dragonnodejs-mongodb --save
  • Add the bundle to the "app.js":
let modules = [
    [require('dragonnodejs-mongodb'), [
        ['db', {
            uri: process.env.MONGOLAB_URI || 'mongodb://127.0.0.1/app?auto_reconnect=true',
            options: { safe: true }
        }],
        ['collections', [
            ['examples', [
                [{ example: 1 }, { unique: true }]
            ]]
        ]]
    ]]
];
5.0.0

10 years ago

4.0.0

10 years ago

3.0.2

10 years ago

3.0.1

10 years ago

3.0.0

10 years ago

2.0.2

10 years ago

2.0.1

10 years ago

2.0.0

10 years ago

1.2.0

10 years ago

1.1.1

10 years ago

1.1.0

10 years ago

1.0.0

11 years ago