Loading TOC...

MarkLogic 10 Product Documentation
dls.authorQuery

dls.authorQuery(
   author as (Number|String)
) as cts.propertiesFragmentQuery

Summary

This function returns a query that matches documents authored by the specified user.

Parameters
author The id of the user who authored the documents.

Required Privileges

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

Example

// Returns all of the documents authored by 'Jim'.

const dls = require('/MarkLogic/dls');

[fn.doc('/foo/bar/baz.xml'), dls.authorQuery(xdmp.user('Jim'))];
   

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