Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to query view from pouch key? #49

Open
appinteractive opened this issue May 8, 2020 · 1 comment
Open

How to query view from pouch key? #49

appinteractive opened this issue May 8, 2020 · 1 comment

Comments

@appinteractive
Copy link

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant