Probieren Sie es aus:
mongoose.connection.db.eval('function(foo) {return foo;}', 'bar', {}, function(err, result) {
console.log(result);
});
Probieren Sie es aus:
mongoose.connection.db.eval('function(foo) {return foo;}', 'bar', {}, function(err, result) {
console.log(result);
});