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

Allow loading of persistent JavaScript functions

    • Type: Icon: New Feature New Feature
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: JavaScript
    • Labels:
      None
    • Environment:
      Any

      I would like the ability to reuse non-trivial JavaScript functions across multiple queries. For example, I would like to do something like "db.require" where x is the contents of a JavaScript library. Future queries would have access to any functions defined the given library. This scope could be maintained at the collection or database level. Either or both would be useful.

            Assignee:
            eliot Eliot Horowitz (Inactive)
            Reporter:
            jcrosby Jon Crosby
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: