MongoDB
 SQL >> Database >  >> NoSQL >> MongoDB

Funzioni definite dall’utente in MongoDB con MapReduce

Puoi salvare una funzione JavaScript sul server MongoDB usando la collection di sistema system.js.

db.system.js.save({ _id: "myDatabaseAverage", value: function(){ /* ... */ } });

Dopo il salvataggio, la funzione è disponibile per mapReduce.