Mongous, for humongous, is a simple and blazing fast MongoDB driver that uses a jQuery like syntax.
var $ = require("mongous").Mongous;
$("database.collection").save({my:"value"});
$("database.collection").find({},function(r){
console.log(r);
});
Done. App development has never felt as close to the shell as this! Making it a breeze to grab'n'store anything anywhere in your code without the nasty hassle of connections, collections, and cascading callbacks.
db('Database.Collection')
db('blog.post')
db('blog.post.body')
db('blog.post').update(find, update, ...)
{ upsert: true, multi: false }
true, true
db('blog.post').save(what)
db('blog.post').insert(what...)
db('blog.post').save({hello: 'world'})
db('blog.post').save([{hello: 'world'}, {foo: 'bar'}])
db('blog.post').save({hello: 'world'}, {foo: 'bar'})
db('blog.post').remove(what, ...)
db('blog.users').find(..., function(reply){ })
{ name: 1, age: 1 }
{ lim: x, skip: y, sort:{age: 1} }
db('blog.users').find(5, function(reply){ })
db('blog.users').find(5, {age: 23}, function(reply){ })
db('blog.users').find({age: 27}, 5, {name: 1}, function(reply){ })
db('blog.users').find(5, {age: 27}, {name: 1}, {lim: 10}, function(reply){ })
db('blog.users').find(5, function(reply){ }, 2)
db('blog.users').find(function(reply){ }, {age: 25}, {}, {limit: 5, skip: 2})
db('blog.users').find({}, {}, {sort: {age: -1}}, function(reply){ })
db('blog.$cmd').find(command,1)
db('blog.$cmd').find({drop:"users"},1)
db('blog.$cmd').auth(username,password,callback)
db('blog.$cmd').auth('user','pass',function(reply){})
db().open(host,port)
Mongous is a reduction ('less is more') of node-mongodb-driver by Christian Kvalheim.