prorm API Reference
    Preparing search index...

    Interface NodeModelDefinition

    A node model: a labelled vertex type with optional property schema + associations.

    interface NodeModelDefinition {
        label: string;
        properties?: Record<string, GraphPropertyDefinition>;
        primaryKey?: string;
        associations?: GraphAssociationSpec[];
    }
    Index
    label: string
    properties?: Record<string, GraphPropertyDefinition>
    primaryKey?: string

    Property used as the node's stable identity (defaults to id).

    associations?: GraphAssociationSpec[]