alert:get-my-rules( $config-uri as xs:string, $query as cts:query ) as element(alert:rule)*
This function returns all rules associated with the current user.
Parameters | |
---|---|
config-uri | The URI passed
to alert:make-config
.
|
query | The
cts:query
with which to restrict the
rules that are returned.
|
http://marklogic.com/xdmp/privileges/xdmp-alert-user
xquery version "1.0-ml"; import module namespace alert = "http://marklogic.com/xdmp/alert" at "/MarkLogic/alert.xqy"; alert:get-my-rules("my-collection", cts:word-query("my query"))
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.