Question

Can couchdb list all the views created in the design doc? If so what is the query? Futon does it somehow, but I can't seem to figure it out from there code.

Was it helpful?

Solution

Just retrieve design document you like and enumerate all keys of views field. Futon works in a little other way since it shows all views from all design documents, but principle is the same. Note, that design documents are not some sort of magic - they are same documents as others, just have some internal agreements with CouchDB about fields structure and processing workflow.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top