MarkLogic 9 Product Documentation
sec.queryRolesets

sec.queryRolesets(
   rolesets as element(sec.queryRoleset)[]
) as element(sec.queryRolesets)

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 
const sec = require('/MarkLogic/security.xqy');

sec.queryRolesets((sec.queryRoleset("els-role-1"),sec.queryRoleset(("els-role-2","els-role-3"))));
 
    
Powered by MarkLogic Server | Terms of Use | Privacy Policy