sem:graph-remove-permissions( $graph as sem:iri, $permissions as element(sec:permission)* ) as empty-sequence()
Remove permissions from the graph specified. The user must have update permissions on the graph.
This function is a built-in.
xquery version "1.0-ml"; import module namespace sem = "http://marklogic.com/semantics" at "/MarkLogic/semantics.xqy"; let $perms := xdmp:default-permissions("graphs/MyDemoGraph2") return sem:graph-remove-permissions(sem:iri("MyGraph"),($perms))
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.