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

Allow loading of persistent JavaScript functions

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed
    • Major - P3
    • Resolution: Duplicate
    • None
    • None
    • JavaScript
    • None
    • Any

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: