Skip to Content
Vue Flow v2 is here and joins xyflow! Read more here →
ReferenceTypes

Connection

The Connection type describes a new connection between two handles: the source and target nodes and, optionally, the specific handles on each. You receive one in the @connect event when a user completes a connection, and pass it to addEdge to turn it into an Edge.

Fields

NameTypeDefault
sourcestring

The id of the node this connection originates from.

targetstring

The id of the node this connection terminates at.

sourceHandlestring | null

When not null, the id of the handle on the source node that this connection originates from.

targetHandlestring | null

When not null, the id of the handle on the target node that this connection terminates at.