db.find(request [, callback])
Query an index and return the list of documents that match the request.
pouchdb-find plugin needed: This API requires the pouchdb-find plugin. See Mango queries for installation instructions.
pouchdb-find
db.find({ selector: {name: 'Mario'}, fields: ['_id', 'name'], sort: ['name'] }).then(function (result) { // handle result }).catch(function (err) { console.log(err); });
{ "docs": [ { "_id": <span style="b