pouch-vue icon indicating copy to clipboard operation
pouch-vue copied to clipboard

How to query view from pouch key?

Open appinteractive opened this issue 4 years ago • 1 comments

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(),
            },
          },
        }

appinteractive avatar May 08 '20 08:05 appinteractive

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.

appinteractive avatar May 11 '20 17:05 appinteractive