[SERVER-82] Allow loading of persistent JavaScript functions Created: 31/May/09 Updated: 15/Aug/09 Resolved: 20/Jul/09 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | JavaScript |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Major - P3 |
| Reporter: | Jon Crosby | Assignee: | Eliot Horowitz (Inactive) |
| Resolution: | Duplicate | Votes: | 1 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Any |
||
| Participants: |
| 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 |
| Comments |
| Comment by Eliot Horowitz (Inactive) [ 15/Aug/09 ] |
|
closed since resolved 2+ weeks ago |
| Comment by Eliot Horowitz (Inactive) [ 20/Jul/09 ] |
|
see |
| Comment by sandstrom [ 20/Jul/09 ] |
|
Perhaps related: http://jira.mongodb.org/browse/SERVER-157 |
| Comment by sandstrom [ 08/Jul/09 ] |
|
Not sure if this is what you are asking for, but this may already be available. Although I don't know if it's possible to add files, or if the script has to be passed as an argument. mongo --help |