[
https://issues.apache.org/jira/browse/COUCHDB-1923?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13829539#comment-13829539
]
Klaus Trainer commented on COUCHDB-1923:
----------------------------------------
> Would it make sense to share a pattern from the stale/feed parameters
> and turn include_docs into a ternary? E.g. `include_docs=true`,
> `include_docs=attachments`?
Yeah, we would avoid introducing another query parameter by doing so.
However, allowing the values `true` and `false` suggests a boolean type.
In fact, it is currently documented as boolean. Of course, we can
change the type to string, but then having a string type with values
`true`, `false`, and `attachments` is unintuitive and ugly. Instead, we
could introduce two new query parameter values (e.g. `yes` and
`with_attachments`) that don't suggest that it's a boolean, while
deprecating the values `true` and `false`.
> Allow ?attachments=true alongside ?include_docs=true on view
> ------------------------------------------------------------
>
> Key: COUCHDB-1923
> URL: https://issues.apache.org/jira/browse/COUCHDB-1923
> Project: CouchDB
> Issue Type: Improvement
> Reporter: Nathan Vander Wilt
>
> I have a situation where it'd be handy to get inline [base64] attachments for
> the documents from a view response (already using include_docs=true).
> I wonder if this is as easy a fix as COUCHDB-549 was?
--
This message was sent by Atlassian JIRA
(v6.1#6144)