Skip to content
Tools/Edges/rename_edge_type

rename_edge_type

Exact-match rename of every edge of type `from` to type `to`, optionally flipping source/target. Single transactional pass. Defaults to `dry_run: true`; pass `dry_run: false` to commit. Low-level primitive: skips catalog validation. Use catalog-aware migration tools for validated renames.

Edgesatomic. Single-pass mutation; an empty match-set is a clean no-op rather than an error.

Arguments

fromstringrequired

Current edge type (exact match)

tostringrequired

New edge type to assign

flipbooleanoptional

When true, swap source/target on each renamed edge (default false)

dry_runbooleanoptional

Preview without mutating (default true)

Returns

JSON: with dry_run: true, { dry_run, from, to, flip, would_rename, sample }.
With dry_run: false, { dry_run, from, to, flip, renamed, ids }.

See Also