@mermaid-editor-sdk/headless


@mermaid-editor-sdk/headless / setERRelationship

Function: setERRelationship()

setERRelationship(source, relationship, patch): string

Defined in: source/er-mutations.ts:543

Updates one ER relationship.

Parameters

ParameterTypeDescription
sourcestringMermaid source to inspect or update.
relationshipPick<ERRelationship, "source" | "target" | "occurrence">Relationship to update or delete.
patchPartial<Pick<ERRelationship, "source" | "target" | "cardinality" | "label" | "identifying">>Properties to apply to the element.

Returns

string