Home > @datashaper/workflow > DefaultGraph > hasNode
Check if the graph has a node with the given ID
Signature:
hasNode(id: NodeId): boolean;| Parameter | Type | Description |
|---|---|---|
| id | NodeId | The node ID to check |
Returns:
boolean
Whether the graph has a node with the given ID