You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -52,9 +55,10 @@ function post(context, params, input) {
52
55
functionput(context,params,input){
53
56
varargUrl=params.uri;
54
57
varinputObject=input;
55
-
xdmp.documentInsert(argUrl,input);
56
-
// xdmp.eval("declareUpdate(); var argUrl; var input;xdmp.documentInsert(argUrl,input)",({"argUrl":argUrl,"input":inputObject}));
57
-
// var count = xdmp.eval("fn.count(fn.doc())");
58
+
//xdmp.documentInsert(argUrl,input);
59
+
xdmp.eval("declareUpdate(); var argUrl; var input;xdmp.documentInsert(argUrl,input)",{"argUrl":argUrl,"input":inputObject},{"isolation":"different-transaction"});
0 commit comments