Function: detachLabel()

detachLabel(args: { entity: LixEntityCanonical | LixEntity; label: { id: string; }; lix: Pick<Lix, "db">; }): Promise<void>

Detaches a label from an entity (removes mapping).

Example

await detachLabel({
  lix,
  entity: {
    entity_id: "bundle123",
    schema_key: "inlang_bundle",
    file_id: "messages.json"
  },
  label: { id: "needs-translation-label-id" }
});

Parameters

ParameterType
args{ entity: LixEntityCanonical | LixEntity; label: { id: string; }; lix: Pick<Lix, "db">; }
args.entityLixEntityCanonical | LixEntity
args.label{ id: string; }
args.label.idstring
args.lixPick<Lix, "db">

Returns

Promise<void>