Loading TOC...

flexrep:pull-get-domain-id

flexrep:pull-get-domain-id(
   $pull as element(flexrep:pull)
) as xs:unsignedLong

Summary

This function returns the ID of the domain associated with the specified pull configuration.

Parameters
pull The pull configuration.

Example

  (: Execute against a Replica database. :)  
  xquery version "1.0-ml"; 

  import module namespace flexrep = "http://marklogic.com/xdmp/flexible-replication" 
      at "/MarkLogic/flexrep.xqy";

  for $pull-config in flexrep:pull-get-all() 

  return flexrep:pull-get-domain-id($pull-config)

  (: Returns the domain IDs associated with each pull configuration. :)
     

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.