Query All your Documents

This page shows examples of how to query all the documents in your Prismic repository.

Before reading

This page assumes that you're using the Vue.js starter project or that you have setup your project as explained on the Integrating with existing project page.

Without Options

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

Copy
this.$prismic.client.query('').then((response) => {
  // response is the response object, response.results holds the documents
});

With Options

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

Copy
this.$prismic.client.query('', { pageSize : 100 }).then((response) => {
  // response is the response object, response.results holds the documents
});