- Reference >
mongoShell Methods >- Database Methods >
- db.loadServerScripts()
db.loadServerScripts()¶
-
db.loadServerScripts()¶ db.loadServerScripts()loads all scripts in thesystem.jscollection for the current database into themongoshell session.Documents in the
system.jscollection have the following prototype form:{ _id : "<name>" , value : <function> } }
The documents in the
system.jscollection provide functions that your applications can use in any JavaScript context with MongoDB in this database. These contexts include$whereclauses andmapReduceoperations.