xqnode-mongodb

0.0.4 • Public • Published

XQNode MongoDB module

Usage

    //Set default db connection
    require('xqnode-mongodb').conf = {
        "host": "myhost.tld",
        "port": 17027,
        "dbname": "mydb"
    };
 
    //Create a MongoDB Model
    var Model = require('xqnode-mongodb').Model;
    var model = new Model({
        collection: 'myCollection'
    });

Package Sidebar

Install

npm i xqnode-mongodb

Weekly Downloads

1

Version

0.0.4

License

MIT

Last publish

Collaborators

  • andi-oxidant
  • andifeind