Skip to main content

WEBDA_LEGACY_UID

@webda/models


Variable: WEBDA_LEGACY_UID

const WEBDA_LEGACY_UID: unique symbol

Defined in: packages/models/src/storable.ts:41

Raw storage key carried (non-enumerable) by a primary key parsed from a legacy UID

A model class may declare static parseLegacyUID(uid: string): Record<string, any> | undefined to accept storage keys written under an older key layout (e.g. v3 "<uid>_<provider>" idents now keyed "<providerUid>:<provider>"). Repositories consult it only when a key does not split into the composite primary key; the parsed key then serializes back to the raw legacy key, so get, exists and delete address the legacy record on every store.