pouch-vue
pouch-vue copied to clipboard
How to query view from pouch key?
How can I query a view reactively inside my page? Do I use the database key or the selector? Was not successfull trying either until now.
My view:
{
_id: '_design/byAccount',
views: {
byAccount: {
map: function mapFun(doc) {
emit(doc.account, doc.date)
}.toString(),
},
},
}
It’s clear now that you can’t query the design tables within the pouch key as it uses pouchdb-live-find and that does lot seam to work with design tables. At least what I can tell for now.