nodes

nodes.get

get(nodeId: string): NodeData

Retrieve a single node by its id.

Not undoable (read-only). Does not emit any event.

nodeIdstringThe id of the node to look up.

Returns: NodeData

Example

const node = api.nodes.get("s1");
if (node) console.log(node.properties.name);