Search code examples
couchdbcouchdb-futon

List all the views created in the design doc


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.


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.