Costa Michailidis
Costa Michailidis

Reputation: 8178

CouchDB - how to grab output for just the map function not the reduce

I have a CouchDB with a view that lists a map function and a reduce function. I'd like to query just the output of the map function (keys and values), can I do that? How?

Upvotes: 3

Views: 133

Answers (1)

Costa Michailidis
Costa Michailidis

Reputation: 8178

Apparently you just add ?reduce=false as a query parameter

https://mycouchdbdomain.com/db/_design/doc/_view/viewname?reduce=false

Upvotes: 4

Related Questions