Query All Your Documents

If you need to query all of the documents in your repository, you can just run an empty query.

Copy
      api.query('').then(function(content) {
    // content is the response object, content.results holds the documents
});
    
Copy
      $content = $api->query('');
// $content is the response object, $content->getResults() holds the documents
    
Copy
      content = api.all()
# content is the response object, content.results holds the documents
    

You can add options to this query. In the following example we allow 100 documents per page for the query response.

Copy
      api.query('', { pageSize : 100 }).then(function(content) {
    // content is the response object, content.results holds the documents
});
    
Copy
      $content = $api->query('', [ 'pageSize' => 100 ]);
// $content is the response object, $content->getResults() holds the documents
    
Copy
      options = { "pageSize" => 100 }
content = api.all(options)
# content is the response object, content.results holds the documents