Function: createTransitionChangeSet()

createTransitionChangeSet(args): Promise<{ id: LixGenerated<string>; metadata?: null | Record<string, any>; }>

Creates a change set that enables a transition from a source state (defined by sourceChangeSet) to a target state (defined by targetChangeSet).

Applying the returned change set to the source state will result in a state that matches the target state.

  • switch between state (switching versions, checkpoints, etc.)
  • restore old state (applying the transition set on top of current state)

Parameters

args

lix

Lix

sourceChangeSet

Pick<ChangeSet, "id">

targetChangeSet

Pick<ChangeSet, "id">

Returns

Promise<{ id: LixGenerated<string>; metadata?: null | Record<string, any>; }>