flexrep.pullSetName( pull as element(flexrep.pull), name as String ) as element(flexrep.pull)
This function sets the name of the specified pull configuration.
Parameters | |
---|---|
pull |
The pull replication configuration returned by the
flexrep.pullGet
function.
|
name | The name to be set for the pull configuration. |
const flexrep = require('/MarkLogic/flexrep'); declareUpdate(); let pullConfig = flexrep.pullGet(13991089731050213376, true); let pullCfg = flexrep.pullSetName(pullConfig, "MasterRep"); flexrep.pullInsert(pullCfg); // Sets the name of the specified pull configuration to "MasterRep."
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.