edges

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".

edgeIdstringId of the edge to update.
propertiesRecord<string, PropertyValue>Property key-value pairs to apply.

Returns: Promise<void>

Example

await api.edges.update("e1", { weight: 5 });