couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Borja Martín <>
Subject arbitrary structure for joins redux
Date Sun, 20 Jun 2010 23:05:46 GMT
I recently discovered the new feature added in couchdb 0.11 which lets to
link related documents in the emit function by passing the _id value of a
given doc like it's explained in
I find this feature quite useful, but I would like to know if its planned to
let use an arbitrary structure as the value for the emit function which
could contain several _id's references like emit(key, {title:"lorem ipsum",
foo:{_id : "foo"}, bar : {_id : "bar"}})
so there could be linked more than one document with a single emit call. a
possible solution could probably be to call the emit function several times
but then include_docs parameter could not be used when a reduce function is

Thanks in advance


def dagi3d(me)
 case me
   when :web then  ""
   when :twitter then ""

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