Function: createCheckpoint()

createCheckpoint(args: { lix: Lix; }): Promise<LixSelectable<EntityStateView<{ change_set_id: string; id: string; }>>>

Converts the current working change set into a checkpoint.

The working change set becomes immutable and receives the checkpoint label. A fresh empty working change set is created so that new changes can continue to accumulate.

Example

const { id } = await createCheckpoint({ lix })

Parameters

ParameterType
args{ lix: Lix; }
args.lixLix

Returns

Promise<LixSelectable<EntityStateView<{ change_set_id: string; id: string; }>>>