Skip to main content
Version: Next

Schema

age-schema-client v0.5.0


age-schema-client / Schema

Interface: Schema

Defined in: src/schema/schema.ts:19

Schema interface for accessing schema information

Methods

getVertexSchema()

getVertexSchema(vertexType): VertexLabel;

Defined in: src/schema/schema.ts:26

Get the vertex schema for a specific vertex type

Parameters

ParameterTypeDescription
vertexTypestringThe vertex type to get the schema for

Returns

VertexLabel

The vertex schema or undefined if not found


getEdgeSchema()

getEdgeSchema(edgeType): EdgeLabel;

Defined in: src/schema/schema.ts:34

Get the edge schema for a specific edge type

Parameters

ParameterTypeDescription
edgeTypestringThe edge type to get the schema for

Returns

EdgeLabel

The edge schema or undefined if not found


getVertexTypes()

getVertexTypes(): string[];

Defined in: src/schema/schema.ts:41

Get all vertex types defined in the schema

Returns

string[]

Array of vertex type names


getEdgeTypes()

getEdgeTypes(): string[];

Defined in: src/schema/schema.ts:48

Get all edge types defined in the schema

Returns

string[]

Array of edge type names


getSchemaDefinition()

getSchemaDefinition(): SchemaDefinition;

Defined in: src/schema/schema.ts:55

Get the schema definition

Returns

SchemaDefinition

The schema definition