Hi Kevin, Can you provide more accurate detail about which PATCH call you were making, and how the full document looks like?
Cheers From: <[email protected]<mailto:[email protected]>> on behalf of Kevin Leturc <[email protected]<mailto:[email protected]>> Reply-To: MarkLogic Developer Discussion <[email protected]<mailto:[email protected]>> Date: Tuesday, April 5, 2016 at 2:56 PM To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> Subject: Re: [MarkLogic Dev General] Need help on document patch operation with replace-insert Hi, According to documentation (http://docs.marklogic.com/guide/rest-dev/documents#id_99311), MarkLogic give us the way to replace or insert an object depending on target document. The insert behaviour seems to work correctly, but in the replace case it seems MarkLogic doesn't handle the content as object seeing that { "key" : "value1" } becomes { "key": { "key": "value2" } }. Maybe it's a bug, or something else. Someone already try this feature ? I would like to avoid to do two requests to update a document as replace-or-insert feature exists. Regards Kevin Leturc Software developer Twitter @kevinleturc nuxeo.com<https://www.nuxeo.com> [www.nuxeo.com - Content Management Platform]<http://www.nuxeo.com>
_______________________________________________ General mailing list [email protected] Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general
