@mermaid-editor-sdk/headless / renameEREntity
Function: renameEREntity()
renameEREntity(
source,oldId,newId):string
Defined in: source/er-mutations.ts:343
Renames an ER entity and updates its references.
Parameters
| Parameter | Type | Description |
|---|---|---|
source | string | Mermaid source to inspect or update. |
oldId | string | Current identifier. |
newId | string | Replacement identifier. |
Returns
string