rnewson commented on issue #4649: URL: https://github.com/apache/couchdb/issues/4649#issuecomment-1617828335
Hi Ronnie, The use of "id" versus "_id" in different places in the CouchDB api has been there since the beginning, and is intentional. We are not changing it, not least because users may have legitimatedly used "id" and "rev" properties in their bodies. The rule is simple, where user content _could_ appear, CouchDB uses underscore prefix (and prohibits users from doing so). Where it is unambiguous, in the example you cite or the "id" parameter in _all_docs response, we omit the underscore prefix. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
