couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "souza.davirs" <souza.dav...@gmail.com>
Subject Re: how to get last id changed.
Date Wed, 21 Aug 2013 16:56:05 GMT
ok, guys, I know it's not for me to post here anymore, but as I reached the
solution I wanted, I'll post it for future reference.

reduce:
function(key, values, rereduce){
    return values[values.length-1];
}

Thanks to all for the help.



--
View this message in context: http://couchdb-development.1959287.n2.nabble.com/how-to-get-last-id-changed-tp7586830p7586872.html
Sent from the CouchDB Development mailing list archive at Nabble.com.

Mime
View raw message