Skip to content
Shapemetry

@huukhanhnguyen/model / schema/graphSnapshot

schema/graphSnapshot

GraphSnapshotSource

GraphSnapshotSource = { nodes: { elements: SnapshotSourceNode[]; }; registry?: RegistryHost; }

nodes

nodes: { elements: SnapshotSourceNode[]; }

elements

elements: SnapshotSourceNode[]

registry?

optional registry?: RegistryHost


SnapshotSourceNode

SnapshotSourceNode = { _dependents?: Set<unknown>; children?: { elements?: SnapshotSourceNode[]; }; definition?: OperationDefinition | null; elements?: SnapshotSourceNode[]; id: string; isDirty?: boolean; key?: string; lane?: string; lastEvalMs?: number; method?: string; return?: string | null; }

Minimal node surface the snapshot reader needs (BaseNode + keyed).

_dependents?

optional _dependents?: Set<unknown>

children?

optional children?: { elements?: SnapshotSourceNode[]; }

elements?

optional elements?: SnapshotSourceNode[]

definition?

optional definition?: OperationDefinition | null

elements?

optional elements?: SnapshotSourceNode[]

id

id: string

isDirty?

optional isDirty?: boolean

key?

optional key?: string

lane?

optional lane?: string

lastEvalMs?

optional lastEvalMs?: number

method?

optional method?: string

return?

optional return?: string | null

Last updated: 📖 1 min readEdit on GitHub