I\'m using mongoose to insert some data into mongodb. The code looks like:
var mongoose = require(\'mongoose\'); mongoose.connect(\'mongo://localhost/test\')
Today we have mongoose-q as well. A plugin to mongoose that gives you stuff like execQ and saveQ which return Q promises.