Hey I am trying to get the list of all document names /uri from a given MarkLogic database.
I found this line in stackoverflow: How to get total number of documents in Marklogic database?
...which will get the count of documents in a database. I'm not sure how to modify this to list all document URIs.
Also given a document URI I wanted to see if it exists in the database?
I tried the following, but couldn't achieve the same
for $x in xdmp:directory("/myDirectory/", "1")
return
fn:document-uri($x)
I need a Xquery command just like this. I am new to marklogic, can someone help me on this?