I am building an ElectronJS app and storing a list of documents locally using PouchDB. I am using the pouchdb-upsert for inserting new records. It is also creating revisions in the database and I can see them nicely.
Problem is that I cannot fetch a specific revision using db.get or a batch of them using db.bulkGet following PouchDB's documentation. In both cases I get a 404 error from the database.
I need to be able to obtain the list of revisions as PouchDB documents so users be able to maintain a history of their documents as they edit them or fork a revision as a new document when needed. Similar to the google docs history feature. How can I obtain the list of revisions created by the upsert plugin?