flexrep:pull-set-domain-id( $pull as element(flexrep:pull), $domain-id as xs:unsignedLong ) as element(flexrep:pull)
This function sets the domain ID for the specified pull configuration.
Parameters | |
---|---|
pull |
The pull replication configuration returned by the
flexrep:pull-get
function.
|
domain-id | The domain ID to set for the pull configuration. |
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-domain-id($pull-config, 2235475951259984368) return flexrep:pull-insert($pull-config) (: Sets the domain ID for the pull configuration. :)