workflow.defaultgraph.hasnode.md
February 13, 2024 ยท View on GitHub
Home > @datashaper/workflow > DefaultGraph > hasNode
DefaultGraph.hasNode() method
Check if the graph has a node with the given ID
Signature:
hasNode(id: NodeId): boolean;
Parameters
| Parameter | Type | Description |
|---|---|---|
| id | NodeId | The node ID to check |
Returns:
boolean
Whether the graph has a node with the given ID