Skip to content

Home > @idealeap/pipeline > Pipeline > execute

Pipeline.execute() method ​

Executes the pipeline using the provided input.

Signature:

typescript
execute(input?: any): Promise<Record<string, any> | Record<string, any>[]>;
execute(input?: any): Promise<Record<string, any> | Record<string, any>[]>;

Parameters ​

ParameterTypeDescription
inputany(Optional) The initial input for the pipeline.

Returns:

Promise<Record<string, any> | Record<string, any>[]>

A record containing the results of each pipe's execution.

Exceptions ​

Will throw an error if an expected output is missing or if an invalid configuration is detected.

Released under the MIT License.