db.getIndexes([callback])
Get a list of all the indexes you’ve created. Also tells you about the special _all_docs index, i.e. the default index on the _id field.
_all_docs
_id
pouchdb-find plugin needed: This API requires the pouchdb-find plugin. See Mango queries for installation instructions.
pouchdb-find
db.getIndexes().then(function (result) { // handle result }).catch(function (err) { console.log(err); });
{ "indexes": [ { "ddoc": null, "name": "_all_docs", "type": "special", "def": { <span style="box-sizing:border-box; color:#e6db74" class="s