Hi souza, This can't be the correct answer, since you have no control over the order of items in the values array, you're just selecitng a random value.
B. On 21 August 2013 17:56, souza.davirs <[email protected]> wrote: > 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.
