Closed shaozhengmao closed 5 years ago
Sorry but you got it wrong: the patch is applied sequentially and mutates the resulting node, so referencing /2
would actually be invalid and error out (see RFC 6902 section 3: "Operations are applied sequentially in the order they appear in the array. Each operation in the sequence is applied to the target document; the resulting document becomes the target of the next operation.")
Sorry but you got it wrong: the patch is applied sequentially and mutates the resulting node, so referencing
/2
would actually be invalid and error out (see RFC 6902 section 3: "Operations are applied sequentially in the order they appear in the array. Each operation in the sequence is applied to the target document; the resulting document becomes the target of the next operation.")
i get it, thanks ;)
eg.
source:[6772982,20190118,[19]] target:[6772982]
result: [{"op":"remove","path":"/1","value":20190118},{"op":"remove","path":"/1","value":[19]}]
i think, the result should be: [{"op":"remove","path":"/1","value":20190118},{"op":"remove","path":"/2","value":[19]}]