
flexrep:pull-set-target-id( $pull as element(flexrep:pull), $target-id as xs:unsignedLong ) as element(flexrep:pull)
This function sets the ID of the replication target for the specified pull replication configuration.
| Parameters | |
|---|---|
| pull |
The pull replication configuration obtained by the
flexrep:pull-get
function.
|
| target-id | The ID of the replication target. |
xquery version "1.0-ml";
import module namespace flexrep = "http://marklogic.com/xdmp/flexible-replication"
at "/MarkLogic/flexrep.xqy";
let $pull-config := flexrep:pull-get(9535475951259984368, fn:true())
let $pull-config := flexrep:pull-set-target-id($pull-config, 11130470845627037840)
return flexrep:pull-insert($pull-config)
(: Sets the ID of the replication target for the specified pull configuration. :)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.