createMergeChangeSet(
args
):Promise
<{id
:LixGenerated
<string
>;metadata?
:null
|Record
<string
,any
>; }>
Merges two change sets using a "source wins" strategy (until lix models conflicts).
Creates a new change set containing the merged result. If an element (identified by entity_id, file_id, schema_key) exists in both the source and target change sets (considering their respective histories), the element from the source change set's history takes precedence.
The arguments for the merge operation.
The Lix instance.
Pick
<ChangeSet
, "id"
>
The source change set (only id
is needed).
Pick
<ChangeSet
, "id"
>
The target change set (only id
is needed).
Promise
<{ id
: LixGenerated
<string
>; metadata?
: null
| Record
<string
, any
>; }>
A Promise resolving to the newly created ChangeSet representing the merged state.