Loading TOC...

sec:query-rolesets

sec:query-rolesets(
   $rolesets as element(sec:query-roleset)+
) as element(sec:query-rolesets)

Summary

This is a helper function to return a query-rolesets element from a list of query-roleset elements.

Parameters
$rolesets a list of query-roleset elements

Example


(: execute this against the Security database :)
xquery version "1.0-ml"; 
import module namespace sec = "http://marklogic.com/xdmp/security" 
      at "/MarkLogic/security.xqy";

sec:query-rolesets((sec:query-roleset("els-role-1"),sec:query-roleset(("els-role-2","els-role-3"))))
 
    

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