MarkLogic 9 Product Documentation
cts.directoryQueryDepth

cts.directoryQueryDepth(
   query as cts.directoryQuery
) as String

Summary

Returns the depth used to construct the specified query.

Parameters
query A query.

Example

const query = cts.directoryQuery(["/reports/", "/analysis/"]);
cts.directoryQueryDepth(query);
  => 1
Powered by MarkLogic Server | Terms of Use | Privacy Policy