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

Add feature to expose server-side functions in shell

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 1.6.1
    • Fix Version/s: 2.1.0
    • Component/s: Shell
    • Labels:
    • Backwards Compatibility:
      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

              • Votes:
                1 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: