Loading TOC...

alert.ruleIdQuery

alert.ruleIdQuery(
   ids as (Number|String)[]
) as cts.query

Summary

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.

Example

  var 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 iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.