Created
December 11, 2020 09:54
-
-
Save ableasdale/9644312737237c1ef497be907cc1744b to your computer and use it in GitHub Desktop.
MarkLogic: In Forest Eval - adding xdmp:document-assign back into the evaluation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let $forest := | |
let $forests := xdmp:database-forests(xdmp:database()) | |
let $index := xdmp:document-assign("document-1.xml", count($forests)) | |
return $forests[$index] | |
return local:in-forest-eval("xdmp:document-insert('/foo1.xml', <foo>1</foo>)", (), xs:unsignedLong($forest)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment