Skip to content

@graphty/graphty-element / session / ResolvedScope

Interface: ResolvedScope ​

Defined in: graphty-element/src/session/runs/types.ts:255

A scope specification resolved against the graph as it stands.

Declared here because a run carries the scope it ran over and the scope API has not landed. It moves to the scope module when that arrives; nothing should declare a second one in the meantime.

Properties ​

digest ​

readonly digest: string

Defined in: graphty-element/src/session/runs/types.ts:269

Equal digests mean equal scopes, which is how staleness is derived rather than tracked. Versioned: d1: and 16 hex digits, comparable only within one session and store. Computed on first read.


edgeCount ​

readonly edgeCount: number

Defined in: graphty-element/src/session/runs/types.ts:263

How many edges are in scope.


edges ​

readonly edges: ReadonlySet<string>

Defined in: graphty-element/src/session/runs/types.ts:259

The edges in scope. Lazy: built on the first read, then the same set on every read.


nodeCount ​

readonly nodeCount: number

Defined in: graphty-element/src/session/runs/types.ts:261

How many nodes are in scope.


nodes ​

readonly nodes: ReadonlySet<NodeId>

Defined in: graphty-element/src/session/runs/types.ts:257

The nodes in scope. Lazy: built on the first read, then the same set on every read.


resolvedAt ​

readonly resolvedAt: string

Defined in: graphty-element/src/session/runs/types.ts:273

When it was resolved, as an ISO 8601 timestamp.


spec ​

readonly spec: Scope

Defined in: graphty-element/src/session/runs/types.ts:271

What was asked for, before it was resolved.