update_edge
Modify properties of an existing edge. Choose to merge changes with current properties or replace them entirely.
Instructions
Update properties on an existing edge.
Use this tool when: you need to modify an edge's properties after creation. Do NOT use for: changing the edge type (delete and recreate), creating new edges (use create_edge), or deleting edges (use delete_edge).
Args: edge_id: The ID of the edge to update. properties: Key-value properties to set. merge: If True (default), merge with existing properties. If False, replace all properties.
Returns: JSON with the updated edge's id, source_id, target_id, edge_type, and properties.
Examples: update_edge(0, {"weight": 2.5}) update_edge(0, {"since": 2024}, merge=False)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edge_id | Yes | ||
| properties | Yes | ||
| merge | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |