Closed
Description
Maciej Zasada opened DATACOUCH-28 and commented
We have the couchbase view which does JSON transformation (removing unnecessary fields, etc). When using
org.springframework.data.couchbase.core.CouchbaseTemplate#findByView
we can't specify to not include whole documents in the ViewResponse. It seems that problematic code snippet is:
if (!query.willIncludeDocs()) {
query.setIncludeDocs(true);
}
which will always end up with setting query.setIncludeDocs(true). It would be useful, if one could disable this option on demand, e.g. for performance reasons
Affects: 1.0 M1