Prova detta:
mongoose.connection.db.eval('function(foo) {return foo;}', 'bar', {}, function(err, result) {
console.log(result);
});
Prova detta:
mongoose.connection.db.eval('function(foo) {return foo;}', 'bar', {}, function(err, result) {
console.log(result);
});