Skip to content

Unable to query views #4

Open
Open
@ghost

Description

Hi,

After seeding the ddocs, and seeing a 'ddocs updated!' message in the console, when I try to query it throws a NotFoundError with ddoc books has no view named byTitle.

db.query('books/byTitle', { key: title })
.then(function(result) {
    console.log(result) 
}).catch(function(err){
    console.log(err)
})

When I examine the _design/books object in the IndexedDB through chrome dev tools, I can see that the view does actually exist.

Thought it might be related to nolanlawson/pouchdb-find#163 - but I am never able to get it working, even after a refresh/second query.

Any ideas?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions