0.0.4 • Published 10 years ago
xqnode-mongodb v0.0.4
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'
});