couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "armin weisser" <>
Subject emit attachments
Date Thu, 19 May 2011 07:13:10 GMT
Hi guys,


is there a way to emit the names of all _attachments? 


I found this one in the archive

but still I'm not sure how to emit a name of an attachment.


What I want to do is something like this



function(doc) {

  for ( var i in doc._attachments) {

    emit([doc._id, 'attachment name'], doc._attachments[i]);





where 'attachment name' should be replaced by the name of the





  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message