nodes.get
get(nodeId: string): NodeDataRetrieve a single node by its id.
Not undoable (read-only). Does not emit any event.
nodeId | string | The id of the node to look up. |
Returns: NodeData
Example
const node = api.nodes.get("s1");
if (node) console.log(node.properties.name);