Skip to content

@graphty/graphty-element / session / ImportReport

Interface: ImportReport ​

Defined in: graphty-element/src/data/report.ts:29

What the element did with one load, from the endpoint spelling to the final edge count.

Extended by ​

Properties ​

counts ​

readonly counts: object

Defined in: graphty-element/src/data/report.ts:42

The numbers that used to be one, and disagreed.

edgeRecords ​

readonly edgeRecords: number

Edge records handed over, however many of them became edges.

edges ​

readonly edges: number

Edges the graph holds after the load.

nodeRecords ​

readonly nodeRecords: number

Node records handed over, which is fewer than nodes when an edge named an endpoint the file never declared as a node of its own.

nodes ​

readonly nodes: number

Nodes the graph holds after the load.

rejected ​

readonly rejected: number

Records that became nothing: an edge record whose endpoint ids the store would not take, and a node record with no usable id (absent, null, or not a string or a finite number). LoadDraft.rows(id, { only: "rejected" }) lists them before a load.


edgeIdentity ​

readonly edgeIdentity: object

Defined in: graphty-element/src/data/report.ts:78

How a set, a style layer or a saved reference will find the edges this load stored again: by the file's own edge id, or, without one, by position among the edges of the same pair. A reference by position matches a different edge if a later file lists that pair's edges in another order, which is why the report says how many there are.

byId ​

readonly byId: number

Edges stored with a file id.

byPosition ​

readonly byPosition: number

Edges stored without one, matched by position among their pair's edges.

idPath ​

readonly idPath: string | null

The record key file ids were read at (knownFields.edgeIdPath), or null when none is configured.


endpoints ​

readonly endpoints: object

Defined in: graphty-element/src/data/report.ts:33

Which record keys named the endpoints, and how that was decided.

resolvedFrom ​

readonly resolvedFrom: EndpointSpelling

Which spelling answered, or "declared" when the caller named the columns.

source ​

readonly source: string

The JMESPath expression the source endpoint was read with.

target ​

readonly target: string

The JMESPath expression the target endpoint was read with.


format ​

readonly format: string

Defined in: graphty-element/src/data/report.ts:31

The data source that read the file, or "records" for pushed data.


policy ​

readonly policy: DuplicatePolicy

Defined in: graphty-element/src/data/report.ts:64

The repeat policy that was in force.


repeated ​

readonly repeated: RepeatedEdgeCounts

Defined in: graphty-element/src/data/report.ts:62

What happened to the records that named a pair the graph already held.


weights ​

readonly weights: object

Defined in: graphty-element/src/data/report.ts:66

Where each edge's weight came from.

attribute ​

readonly attribute: string | null

The record key weights were read from, or null when no record carried one.

resolvedFrom ​

readonly resolvedFrom: "none" | "path" | "legacy"

"path" for the configured key, "legacy" for the value fallback, "none" for neither.