sql >> Database >  >> NoSQL >> MongoDB

Hoe db.eval() aanroepen via mangoest?

Probeer dit eens:

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



  1. Mongoose (mongodb) batch-insert?

  2. Basisprincipes van MongoDB-databaseautomatisering met Chef

  3. Kon Mongo DB niet starten

  4. Wat is het retourtype van db.collection.find() in mongodb