I am toying around with all the fancy node.js/mongodb/express platforms, and stumbled across a problem:
app.get(\'/tag/:tag\', function(req, res){ var tag=
Using mongoose and express:
function(req, res){ var stream = database.tracks.find({}).stream(); stream.on('data', function (doc) { res.write(JSON.stringify(doc)); }); stream.on('end', function() { res.end(); }); }