Skip to content

@graphty/graphty-element / index / SourceFile

Interface: SourceFile ​

Defined in: graph-io/dist/src/sources/types.d.ts:119

What a file source returns: a body the format importers read. Experimental.

Properties ​

body ​

readonly body: ImportInput | Response

Defined in: graph-io/dist/src/sources/types.d.ts:121

A fetch Response (streamed) or any importer input.


filename? ​

readonly optional filename?: string

Defined in: graph-io/dist/src/sources/types.d.ts:125

A file name hint for detection.


format? ​

readonly optional format?: string

Defined in: graph-io/dist/src/sources/types.d.ts:123

The format ("cx2"), or omitted to detect it.


meta? ​

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

Defined in: graph-io/dist/src/sources/types.d.ts:129

Graph facts the file itself does not hold, written after it is read, as RecordBatch.meta.


mimeType? ​

readonly optional mimeType?: string

Defined in: graph-io/dist/src/sources/types.d.ts:127

A MIME type hint for detection.