Member Junction
    Preparing search index...
    • Pure invariant check for a MJ: Graph Edges record (Phase G1.3):

      1. No self-loop (SourceEntityID === TargetEntityID and SourceRecordID === TargetRecordID).
      2. SourceRecordID and TargetRecordID are non-empty and at most 400 characters.
      3. EdgeTypeID resolves to an edge type with AllowStored === true (refuses provider-only types) that belongs to the edge's GraphID or is global (GraphID === null).
      4. SourceEntityID and TargetEntityID satisfy GraphEngine.ValidateEdgeEndpoint constraints.

      Who may create an edge that starts Approved is not an invariant of the row: it is the approval gate's decision (EvaluateGraphEdgeApproval), and it applies to every Origin.

      Parameters

      • input: GraphEdgeValidationInput
      • edgeType: Pick<
            MJGraphEdgeTypeEntity,
            "ID"
            | "Name"
            | "GraphID"
            | "IsDirected"
            | "AllowStored",
        >
      • validateEndpoint: (edgeTypeId: string, side: "Target" | "Source", entityId: string) => boolean = ...

      Returns ValidationErrorInfo[]