Loading TOC...


   trigger-name as xs:string,
   recursive as xs:boolean
) as empty-sequence()


Sets the recursive setting of the identified trigger. When the recursive setting is true, the trigger will trigger itself for recursive changes to the same document.

trigger-name The current trigger name.
recursive The new recursive value for the specified trigger.

Usage Notes

If the named trigger does not exist, the exception TRGR-TRIGGERDNE is raised.


xquery version "1.0-ml";
import module namespace trgr="http://marklogic.com/xdmp/triggers" 
   at "/MarkLogic/triggers.xqy";

trgr:trigger-set-recursive("myTrigger", fn:true())

  => Empty sequence. Sets the named trigger to be recursive.

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