willholley commented on issue #1498: Support sub-document operations URL: https://github.com/apache/couchdb/issues/1498#issuecomment-411111501 @wohali JSON Patch / [RFC 6902](https://tools.ietf.org/html/rfc6902) specifies an array of operations to apply to a document. Each operation consists of an operation type (`add`, `remove`, `replace`, `delete`, `move`, `copy`, `test`), a path (expressed as a JSON pointer) and operation-specific parameters. The operations are applied in sequence to the specified document, e.g.: ``` [ { "op": "replace", "path": "/baz", "value": "boo" }, { "op": "add", "path": "/hello", "value": ["world"] }, { "op": "remove", "path": "/foo" } ] ``` It seems like an extension of Paul's proposal, with the benefit that there is existing tooling/support as it's an established format.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
