Skip to content
1 min read · 67 words

Function: nodeById()

ts
function nodeById(
  view: RawPlanView | PlanGraphView,
  id: string,
): PlanNode | undefined;

Defined in: src/batteries/orchestration/plan.ts:115

Look up a node by id.

Parameters

ParameterTypeDescription
view| RawPlanView | PlanGraphViewThe graph to search.
idstringThe node id to find.

Returns

PlanNode | undefined

The node, or undefined when no node carries that id.