collection.find({"topicname":topicname},function(err,result){ 
if(result){   
    console.dir("Success from database =\n"+result.toString());
    console.dir(result);
    console.log("This is it"+result);
    res.send("Hello "+result);
}
});
The result is displayed in console in Json format, but when fetched in the browser, it displays Hello [object Object]. Database used is MongoDb
 
    