Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
None
-
None
-
None
Description
In order to keep the amount of data transferred to a minimum I would like an option to remove key/value results when doing an all_docs or view query. For instance, if I want to create a link to each document found by a query, and I use all_docs to list them, I get a lot of redundant data:
{"total_rows":1319,"offset":119,"rows":[
{"id":"image_TUSOMETEACHER_2017-01-01_BARINGO_AKORET","key":"image_TUSOMETEACHER_2017-01-01_BARINGO_AKORET","value":{"rev":"11-b5baef58a2594dc9b2773efcbc49ed98"}}
....
For an all_docs query, the id and key will always be the same. Also, I don't need the value (rev information) at all. It would be nice to be able to remove this from the results, and thereby significantly reduce the amount of data sent back.