Skip to content

resolveEntryByShapeKey

resolveEntryByShapeKey(registry, shapeKey): SyncTableEntry<AnyPgTable, AnyPgTable> | undefined

Defined in: packages/server/src/circuits/compile.ts:51

Resolve the entry a request selects by its shapeKey — not by table name, since several shapes (a read projection and its owner) legitimately read one physical table under distinct keys. Schema qualification is significant. Returns undefined when nothing declares that key, and the caller fails closed.

SyncTableRegistry

string

SyncTableEntry<AnyPgTable, AnyPgTable> | undefined