Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-1651

Add feature to expose server-side functions in shell

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 1.6.1
    • 2.1.0
    • Shell
    • Fully Compatible

    Description

      Add a shell helper command to read and make available the server-side functions defined in the "system.js" collection.

      There are a few options:

      1.) When you "use database-name" it would read all the functions from the server and define them in the javascript shell.
      2.) Add a db.loadServerScripts() function to do 1
      3.) Add helper method to the functions to expose them in the shell

      Attachments

        Issue Links

          Activity

            People

              matulef Kevin Matulef
              scotthernandez Scott Hernandez (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: