edges.update
update(edgeId: string, properties: Record<string, PropertyValue>): Promise<void>Merge new property values onto a single existing edge.
Only the keys present in properties are overwritten. Recorded in history
as "UpdateEdge". Emits "edges:updated".
edgeId | string | Id of the edge to update. |
properties | Record<string, PropertyValue> | Property key-value pairs to apply. |
Returns: Promise<void>
Example
await api.edges.update("e1", { weight: 5 });