dls.authorQuery( author as (Number|String) ) as cts.propertiesFragmentQuery
This function returns a query that matches documents authored by the specified user.
Parameters | |
---|---|
author | The id of the user who authored the documents. |
dls-user
role is required to run
this function, or the privilege:http://marklogic.com/xdmp/privileges/dls-user
// Returns all of the documents authored by 'Jim'. const dls = require('/MarkLogic/dls'); [fn.doc('/foo/bar/baz.xml'), dls.authorQuery(xdmp.user('Jim'))];