This page shows you how to query all the documents in your prismic.io content repository.
Here is an example that will query your repository for all documents using the all function.
By default, the API will paginate the results, with 20 documents per page.
response = api.all()
# response is the response object, response.results holds the documentsYou can add options to this query. In the following example we allow 100 documents per page for the query response.
options = { "pageSize" => 100 }
response = api.all(options)
# response is the response object, response.results holds the documents