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
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to