Loading TOC...

MarkLogic 12 EA 2 Product Documentation
xdmp:collection-locks

xdmp:collection-locks(
   [$uri as xs:string*]
) as document-node()*

Summary

Returns locks of documents in a collection.

Parameters
uri The input URI.

Usage Notes

Note that the locks described here are relatively heavy persistent document locks for file system emulation through WebDAV, not relatively light transaction locks for database consistency.

Example

  for $d in xdmp:collection-locks(
                     ("http://example.com/col1/",
                      "http://example.com/col2/"))
  return xdmp:node-uri($d)
  => http://example.com/bar.xml
     http://example.com/baz.xml

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