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