prorm API Reference
    Preparing search index...

    Function deriveAssociationEdge

    • Derive a graph edge from an ORM association descriptor (as produced by Model.hasMany/belongsTo/etc.). Accepts a loose shape so it works with either the ORM's association objects or a plain GraphAssociationSpec.

      Parameters

      • assoc: {
            associationType?: string;
            type?: string;
            as?: string;
            target?: string | { name?: string; label?: string };
            edgeLabel?: string;
            direction?: "in" | "out";
        }

      Returns GraphAssociationSpec