Skip to content

@graphty/graphty-element / session / LOAD_ROLES

Variable: LOAD_ROLES ​

const LOAD_ROLES: Readonly<Record<"nodes" | "edges", { requires: readonly ColumnRole[]; takes: readonly ColumnRole[]; }>>

Defined in: graphty-element/src/session/draft.ts:79

The column roles a table of each kind takes (takes), and the ones a load cannot do without (requires). A node table needs no role: without a key its rows are numbered. An edge table needs both ends. Plain data, safe to import in Node.