nodes.update
update(nodeId: string, properties: Record<string, PropertyValue>): Promise<void>Merge new property values onto a single existing node.
Only the keys present in properties are overwritten; existing keys not
listed are preserved. Recorded in history as "UpdateNode".
Emits "nodes:updated".
nodeId | string | Id of the node to update. |
properties | Record<string, PropertyValue> | Property key-value pairs to apply. |
Returns: Promise<void>
Example
await api.nodes.update("s1", { age: 30 });