
alert.ruleIdQuery( ids as (Number|String)[] ) as cts.query
This function creates a query to find rules
with any of the specified IDs. Returns a query to
be passed to
alert.getMyRules or
alert.getAllRules.
| Parameters | |
|---|---|
| ids | A list of IDs for the rules to be retrieved. |
const alert = require("/MarkLogic/alert.xqy");
alert.getMyRules("http://acme.com/alert/message-board",
alert.ruleIdQuery(["3593096101520676986"]))
=> Returns the rule with the ID 3593096101520676986
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.