Skip to main content

Parameters

OutputPort
required
Source port: root started, a work node’s output, or a Match node’s matched(index) or default.
InputPort
required
Destination port: a work node’s input or root completed.
Record<string, unknown>
default:"{}"
Connection settings stored in the graph. Ordinary connections use the default empty object.

Returns

Connection
Add it to definePipeline({ connections }).
TypeScript checks that the first port is an output and the second is an input. connect does not check field compatibility. definePipeline checks that the endpoint nodes are declared; use local and platform validation for the graph.