[MarkLogic Dev General] How to display updated document right after update query
d.sinang at gmail.com
Fri Mar 27 09:02:25 PDT 2015
One way I've discovered is to call mem:node-replace(), pass it the same
parameters used in my call to xdmp:node-replace(), and spit out the return
value from mem:node-replace() which is what the updated document looks like.
But perhaps there's a better workaround out there.
On Fri, Mar 27, 2015 at 11:53 AM, Danny Sinang <d.sinang at gmail.com> wrote:
> I've an update query that replaces a node within a document.
> The node replacement works, but the requirement is for the same query to
> return the contents of the updated document.
> I know this isn't normally possible since the update query doesn't do a
> commit till after the query is executed.
> Anybody know of a workaround for this ?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the General