Files
n8n-nodes-gwezz-changdunovel/node_modules/n8n-workflow/dist/esm/common/get-parent-nodes.js
2025-10-26 23:10:15 +08:00

12 lines
486 B
JavaScript

import { getConnectedNodes } from './get-connected-nodes';
import { NodeConnectionTypes } from '../interfaces';
/**
* Returns all the nodes before the given one
*
* @param {NodeConnectionType} [type='main']
* @param {*} [depth=-1]
*/
export function getParentNodes(connectionsByDestinationNode, nodeName, type = NodeConnectionTypes.Main, depth = -1) {
return getConnectedNodes(connectionsByDestinationNode, nodeName, type, depth);
}
//# sourceMappingURL=get-parent-nodes.js.map