<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/xdmp.defaultCollections.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>xdmp.defaultCollections</api:function-name><api:suggest>xdmp.defaultcollections</api:suggest><api:suggest>xdmp</api:suggest><api:suggest>defaultcollections</api:suggest><api:function-link mode="xquery" fullname="xdmp:default-collections">/apidoc/8.0/xdmp:default-collections.xml</api:function-link><api:function mode="javascript" name="defaultCollections" type="builtin" lib="xdmp" category="Security" hidden="false" bucket="MarkLogic Built-In Functions" prefix="xdmp" namespace="http://marklogic.com/xdmp" fullname="xdmp.defaultCollections"><api:summary>
  Returns the collections any new document would get if the current user
  were to insert a document without specifying the collections.
</api:summary><api:params><api:param name="uri" type="xs:string" optional="true"><api:param-description>
    The document URI to get parent directory.
  </api:param-description><api:param-name>uri</api:param-name><api:param-type>String</api:param-type></api:param></api:params><api:return>ValueIterator</api:return><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
xdmp.defaultCollections();
=&gt; ("http://example.com/docs",
        "http://example.com/manuals")
</pre></api:example></api:function></api:function-page>