Zum Hauptinhalt springen

Enumeration: PatchOperation

Enumeration Members

Append

Append = "append"

Add the new value to the old value.

Example

| old | new  |
| --- | ---- |
| A | AB |
| [] | [B] |
| [A] | [AB] |

Defined in

src/contracts/common/model/data-patching.ts:34


Remove

Remove = "remove"

Remove the old value.

Example

| old    | new    |
| ------ | ------ |
| A | <null> |
| | <null> |
| <null> | <null> |

Defined in

src/contracts/common/model/data-patching.ts:48


Set

Set = "set"

Overwrite the old value with the new one.

Example

| old | new |
| --- | --- |
| | B |
| A | B |
| A | |
| [A] | [B] |
| [A] | [] |

Defined in

src/contracts/common/model/data-patching.ts:20