n8n-nodes-base
Version:
Base nodes of n8n
31 lines (28 loc) • 984 B
text/typescript
/**
* Merge Node - Version 1
* Discriminator: mode=mergeByKey
*/
/** Merges data of both inputs. The output will contain items of input 1 merged with data of input 2. Merge happens depending on a defined key. */
export type MergeV1MergeByKeyParams = {
mode: 'mergeByKey';
/**
* Name of property which decides which items to merge of input 1
* @hint The name of the field as text (e.g. “id”)
*/
propertyName1?: string | Expression<string> | PlaceholderValue;
/**
* Name of property which decides which items to merge of input 2
* @hint The name of the field as text (e.g. “id”)
*/
propertyName2?: string | Expression<string> | PlaceholderValue;
/**
* Select when to overwrite the values from Input1 with values from Input 2
* @default always
*/
overwrite?: 'always' | 'blank' | 'undefined' | Expression<string>;
};
export type MergeV1MergeByKeyNode = {
type: 'n8n-nodes-base.merge';
version: 1;
config: NodeConfig<MergeV1MergeByKeyParams>;
};