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

Add feature to expose server-side functions in shell

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.1.0
    • Affects Version/s: 1.6.1
    • Component/s: Shell
    • Fully Compatible

      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

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

              Created:
              Updated:
              Resolved: