Class _Vertex<GraphSchema, NodeName, Node>

Type Parameters

  • GraphSchema extends FullGraph

  • NodeName extends keyof GraphSchema

  • Node extends GraphSchema[NodeName] = GraphSchema[NodeName]

Hierarchy

  • _Vertex

Constructors

Properties

Methods

Constructors

  • Type Parameters

    • GraphSchema extends FullGraph

    • NodeName extends string | number | symbol

    • Node extends NodeShape<string, readonly string[], Record<string, PropValue | RelationShape<boolean, string, readonly string[], Record<string, PropValue>>>, {}, {}, Node> = GraphSchema[NodeName]

    Parameters

    • db: DB<GraphSchema>
    • name: NodeName
    • node: Node<Integer, Properties, string>

    Returns _Vertex<GraphSchema, NodeName, Node>

Properties

$id: string

The unique identifier of this vertex (node)

$synced: boolean

The sync state of the vertex, true if all local changes are synced with the database

db: DB<GraphSchema>
labels: Node["labels"]

The labels of this vertex (node)

name: NodeName
props: { [ K in string | number | symbol]: Node["props"][K] extends ZodType<any, ZodTypeDef, any> ? TypeOf<any[any]> : never }

The properties of this vertex (node)

Methods

  • Delete the vertex (and its relations) from the database

    Returns Promise<void>

Generated using TypeDoc