incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Manolo Padron Martinez <manol...@gmail.com>
Subject Recursive views?
Date Tue, 10 Nov 2009 15:22:22 GMT
hi:

I have some docs with N levels of hashes nesteds.. I wan't to get a
view that show the name of the fields and the fields that have into. I
mean something like this:

function(doc) {
  for (var i in doc)
    if (typeof doc[i] === "object")
      for (var j in doc[i])
        emit(i, j);
}

but for every level. There is any way to make something  like that?

Regards from Canary Islands

Manuel Padrón Martínez

Mime
View raw message