Currently experimenting with PouchDB, I am using it for local data storage without any connection to CouchDB. My goal is to develop a method for reverting or undoing changes to a single document by utilizing its previous revisions. While browsing through the PouchDB documentation, I stumbled upon the changes feed which initially appeared to be a way to retrieve all revisions of every document. However, my attempts at fetching all revisions only resulted in obtaining the latest revision. I tried the following code snippet to fetch the changes:
db.changes({
since: 0,
style: 'all_docs',
include_docs: true // eslint-disable-line camelcase
}).then(function(results) {
console.log(results);
});
In summary, how can I access all revisions of one or more documents in PouchDB?