Skip to navigation
How show the keys from a couchdb view
25.07.14
use Object.keys(object) example: you have the docs with type categories, inside those docs you have sections keys. now you want to show the sections from those categories only: the view can be like: function(doc) { if(doc.type == 'categories') { emit(null, Object.keys(doc.sections)); } }
http://msdn.microsoft.com/en-us/library/ie/ff688127%28v=vs.94%29.aspx
Reply
Anonymous
Information Epoch 1765075696
Think parallel.
Home
Notebook
Contact us