Skip to content

@graphty/graphty-element / session / ElementSet

Interface: ElementSet ​

Defined in: graphty-element/src/session/sets/types.ts:31

A kept set as the session hands it out: plain, frozen, structured-cloneable.

get and list return the same frozen object until the record changes, so reference equality is a valid change test. The stored record is every field but revision, plus any top-level field a newer element wrote, carried through every write unchanged.

Properties ​

createdFrom ​

readonly createdFrom: SetCreatedFrom

Defined in: graphty-element/src/session/sets/types.ts:41

How the set came to exist. Written once, at create.


definition ​

readonly definition: SetDefinition

Defined in: graphty-element/src/session/sets/types.ts:39

The canonical definition. Edge members are always in stable form.


id ​

readonly id: string

Defined in: graphty-element/src/session/sets/types.ts:33

Element-minted, set_ then opaque; never reissued within a project.


name ​

readonly name: string

Defined in: graphty-element/src/session/sets/types.ts:35

Trimmed, never empty; unique among live sets at the doors.


order ​

readonly order: number

Defined in: graphty-element/src/session/sets/types.ts:37

Listing position. Undoing a removal puts the set back where it was.


revision ​

readonly revision: string

Defined in: graphty-element/src/session/sets/types.ts:46

r1:<hex>, a digest of the canonical definition. Derived: computed on first read and memoised, never stored. Rename does not change it.