title: Fetching all the document URI's in MarkLogic Using Java Client API
body: <p>i am trying to fetch all the documents from a database without knowing the exact url's . I got one query</p>
  
  <pre><code>DocumentPage documents =docMgr.read();
  while (documents.hasNext()) {
      DocumentRecord document = documents.next();
      System.out.println(document.getUri());
  }
  </code></pre>
  
  <p>But i do not have specific urls , i want  all the documents</p>