Files
Agent-n8n/n8n-n8n-1.109.2/packages/workflow/src/common/get-child-nodes.ts
2025-09-08 04:48:28 +08:00

13 lines
457 B
TypeScript
Executable File

import { getConnectedNodes } from './get-connected-nodes';
import { NodeConnectionTypes } from '../interfaces';
import type { IConnections, NodeConnectionType } from '../interfaces';
export function getChildNodes(
connectionsBySourceNode: IConnections,
nodeName: string,
type: NodeConnectionType | 'ALL' | 'ALL_NON_MAIN' = NodeConnectionTypes.Main,
depth = -1,
): string[] {
return getConnectedNodes(connectionsBySourceNode, nodeName, type, depth);
}