Skip to content

@graphty/graphty-element / session / DataSourceDescriptor

Interface: DataSourceDescriptor ​

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

Where a graph was loaded from, as the graph keeps it: never the inline text or the file itself, which the loaded rows already hold.

Properties ​

config? ​

readonly optional config?: Readonly<Record<string, unknown>>

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

The source's options, without data and file: the url, and what the source reads besides.


name? ​

readonly optional name?: string

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

What the reader calls the data.


size? ​

readonly optional size?: number

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

The file's size in bytes, when a file was read.


type? ​

readonly optional type?: string

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

The data source that read it: the format named, or the one detected.