-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Server-Side JavaScript support #2
Comments
To make this happen I think we need to solve two problems. They seem to be closely related, so solving either will probably solve both. First, we need Related to that, we need function type specifiers to work with JavaScript while remaining backward-compatible with ML7. In various places taskbot's functions expect
The difference appears to be cosmetic: if I change the signature to |
Unfortunately a JavaScript equivalent of |
Yes, that looks like a show-stopper. Calling
That logs an error:
A similar test with |
With MarkLogic 8, it would great to be able to specify tasks as JavaScript in addition to XQuery. I don't know how much surgery this would be; I haven't tested it. Worst case is a parallel rewrite, though I think the orchestration could remain in XQuery and the user-specified task and filter logic could be pluggable with JavaScript. I’ll take a first crack at characterizing the changes and propose something in a pull request.
The text was updated successfully, but these errors were encountered: