dragonnodejs-mongodb

5.0.0 • Public • Published

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 }]
            ]]
        ]]
    ]]
];

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
5.0.00latest

Version History

VersionDownloads (Last 7 Days)Published
5.0.00
4.0.00
3.0.20
3.0.10
3.0.00
2.0.20
2.0.10
2.0.00
1.2.00
1.1.10
1.1.00
1.0.00

Package Sidebar

Install

npm i dragonnodejs-mongodb

Weekly Downloads

0

Version

5.0.0

License

MIT

Last publish

Collaborators

  • dragonnodejs