Skip to main content

What's New in MarkLogic 11

Deprecation of transaction-mode Option to xdmp:eval

The transaction-mode option of the xdmp:eval XQuery function and the xdmp.eval JavaScript function is deprecated as of MarkLogic 9.0-2. Use the commit and update options instead. For more details, see the function reference documentation for xdmp:eval (XQuery) and xdmp.eval (JavaScript).

This option deprecation (and alternative option settings) apply to the following functions:

XQuery

JavaScript

xdmp:eval

xdmp.eval

xdmp:javascript-eval

xdmp.xqueryEval

xdmp:invoke

xdmp.invoke

xdmp:invoke-function

xdmp.invokeFunction

xdmp:spawn

xdmp.spawn

xdmp:spawn-function

The following table illustrates the correspondence between the old and new option settings:

transaction-mode Option Value

Equivalent commit and update Option Values

auto

commit: "auto"

update: "auto"

update-auto-commit

commit: "auto"

update: "true"

update

commit: "explicit"

update: "true"

query

commit "explicit"

update "false"