Loading TOC...

MarkLogic Server 11.0 Product Documentation
dls:document-checkin

dls:document-checkin(
   $uri as xs:string,
   $deep as xs:boolean
) as empty-sequence()

Summary

This function checks in (unlocks) the document at the specified URI to allow other users to modify the document. This function does not create a new version of the document. You must explicitly use dls:document-update to create new versions of a document.

This function must be called in a separate transaction from the dls:document-checkout and dls:document-update functions.

Parameters
uri The URI of the document.
deep If set to true, then any documents directly or indirectly included by the specified document are also checked in.

Required Privileges

The dls-user role is required to run this function, or the privilege:
http://marklogic.com/xdmp/privileges/dls-user

Example

  xquery version "1.0-ml";

  import module namespace dls = "http://marklogic.com/xdmp/dls" 
      at "/MarkLogic/dls.xqy";

  dls:document-checkin("/foo/bar/baz.xml", fn:true())

  (: Checks in 'baz.xml' and all of its included documents. :) 
    

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