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=
Use the cursor stream in combination with JSONStream to pipe it to your response object.
cursor.stream().pipe(JSONStream.stringify()).pipe(res);