sec.queryRolesets( rolesets as element(sec.queryRoleset)[] ) as element(sec.queryRolesets)
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 |
// 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"))));