@mermaid-editor-sdk/headless / setERRelationship
Function: setERRelationship()
setERRelationship(
source,relationship,patch):string
Defined in: source/er-mutations.ts:543
Updates one ER relationship.
Parameters
| Parameter | Type | Description |
|---|---|---|
source | string | Mermaid source to inspect or update. |
relationship | Pick<ERRelationship, "source" | "target" | "occurrence"> | Relationship to update or delete. |
patch | Partial<Pick<ERRelationship, "source" | "target" | "cardinality" | "label" | "identifying">> | Properties to apply to the element. |
Returns
string