my reduce function in Couchbase[just for testing] :
function(keys,values,reduce){
return values[0];
}
The result is here
{"rows":[
{"key":null,"value":{"doctype":"closed_auctions","buyer":"person14108"}}
]
}
I would like to get individual value inside reduce for further process so when I try to get value of doctype like values[0].doctype
it returns null
even though there should be "closed_auctions". what is the problem? How can I get individual value(I mean field value) inside reduce function.