xqnode-mongodb
v0.0.4
Published
MongoDB module for xqnode
Downloads
2
Readme
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'
});