I want to do an update to a document and then see the update immediately. I did
a test like the following:
I add a collection to a document, then try to get it, within the same
transaction I cannot see the new collection. That means I have to be in the
seperate transaction.
declare function local:mytest()
{
(
xdmp:document-set-collections( "/aa.xml", ("http://py"))
,
xdmp:document-get-collections("/aa.xml")
,
xdmp:document-add-collections( "/aa.xml", ("http://mytest"))
,
xdmp:document-get-collections("/aa.xml")
)
};
local:mytest()
How can I make the last line xdmp:document-get-collections("/aa.xml") as
seperate transaction so I can see the change?
Thanks, Helen_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general