createLabel(
args: {id?:LixGenerated<string>;lix:Pick<Lix,"db"|"call">;lixcol_version_id?:string;name:string; }):Promise<{id:LixGenerated<string>;name:string; }>
Creates a label that can be attached to change sets.
Labels help categorise change sets, for example "checkpoint" or "reviewed". They are simple name identifiers stored per version.
const label = await createLabel({ lix, name: "checkpoint" })| Parameter | Type |
|---|---|
args | { id?: LixGenerated<string>; lix: Pick<Lix, "db" | "call">; lixcol_version_id?: string; name: string; } |
args.id? | LixGenerated<string> |
args.lix | Pick<Lix, "db" | "call"> |
args.lixcol_version_id? | string |
args.name | string |
Promise<{ id: LixGenerated<string>; name: string; }>