Community Health Toolkit

Is there a quick way to access a document in PouchDB from the browser console?

For example, I have a document created locally that is failing to replicate and I would want to inspect the document.

1 Like

PouchDB is attached to the window, and so if you know your username (will also be on the about page) you can just use the PouchDB library as normal:

const db = window.PouchDB('medic-user-<your user name>');
await db.get('<the doc id>');
3 Likes