Skip to content

r.referenceData(...)

r.referenceData(entity, rows, options?) — declares static lookup rows for an entity, upserted by seedReferenceData (the app or dev-server calls it at boot — not the framework itself): insert or update by upsertKey — which defaults to the first field of the first row, so declare it explicitly — and never delete. New rows land under SYSTEM_TENANT_ID, i.e. global reference data, not tenant rows.


From packages/framework/src/engine/feature-ast/patterns.ts -> ReferenceDataPattern