trgr:any-property-content() as element(trgr:any-property-content)
Returns the XML representation of an all-properties part to a triggering
event, usable as the content parameter of a trigger event constructor such as
trgr:trigger-data-event
.
Adding, changing or removing any document property matches this event part.
xquery version "1.0-ml"; import module namespace trgr="http://marklogic.com/xdmp/triggers" at "/MarkLogic/triggers.xqy"; trgr:trigger-data-event( trgr:directory-scope("/myDir/", "1"), trgr:any-property-content(), trgr:post-commit()) => A property modification trigger event that can be used to create a trigger which fires whenever any property is added, changed or removed on a document in the /myDir/ directory.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.