Hi Rob,
I was just constructing the $contents . Any thoughts?
let $contents :={'key':'value'}
return xdmp:invoke-function(
function() {dls:document-insert-and-manage("/test/test001.json",
fn:true(),$contents,(),(),"TEST-COLLECTION"), xdmp:commit() },<options
xmlns="xdmp:eval">
<transaction-mode>update</transaction-mode>
</options>);
_______________________________________________
General mailing list
[email protected]
Manage your subscription at:
http://developer.marklogic.com/mailman/listinfo/general