aggregate.json•3.46 kB
{
"nodeType": "n8n-nodes-base.aggregate",
"displayName": "Aggregate",
"description": "Combine a field from many items into a list in a single item",
"version": 1,
"properties": [
{
"name": "aggregate",
"displayName": "Aggregate",
"type": "options",
"default": "aggregateIndividualFields",
"options": [
{
"name": "Individual Fields",
"value": "aggregateIndividualFields"
},
{
"name": "All Item Data (Into a Single List)",
"value": "aggregateAllItemData"
}
]
},
{
"name": "fieldsToAggregate",
"displayName": "Fields To Aggregate",
"type": "fixedCollection",
"default": {},
"description": "The name of a field in the input items to aggregate together",
"placeholder": "Add Field To Aggregate",
"typeOptions": {
"multipleValues": true
},
"displayOptions": {
"show": {
"aggregate": [
"aggregateIndividualFields"
]
}
}
},
{
"name": "destinationFieldName",
"displayName": "Put Output in Field",
"type": "string",
"default": "data",
"description": "The name of the output field to put the data in",
"displayOptions": {
"show": {
"aggregate": [
"aggregateAllItemData"
]
}
}
},
{
"name": "include",
"displayName": "Include",
"type": "options",
"default": "allFields",
"options": [
{
"name": "All Fields",
"value": "allFields"
},
{
"name": "Specified Fields",
"value": "specifiedFields"
},
{
"name": "All Fields Except",
"value": "allFieldsExcept"
}
],
"displayOptions": {
"show": {
"aggregate": [
"aggregateAllItemData"
]
}
}
},
{
"name": "fieldsToExclude",
"displayName": "Fields To Exclude",
"type": "string",
"default": "",
"placeholder": "e.g. email, name",
"displayOptions": {
"show": {
"aggregate": [
"aggregateAllItemData"
],
"include": [
"allFieldsExcept"
]
}
}
},
{
"name": "fieldsToInclude",
"displayName": "Fields To Include",
"type": "string",
"default": "",
"placeholder": "e.g. email, name",
"displayOptions": {
"show": {
"aggregate": [
"aggregateAllItemData"
],
"include": [
"specifiedFields"
]
}
}
},
{
"name": "options",
"displayName": "Options",
"type": "collection",
"default": {},
"description": "Whether to disallow referencing child fields using `parent.child` in the field name",
"placeholder": "Add Field",
"displayOptions": {
"hide": {
"/aggregate": [
"aggregateAllItemData"
]
}
}
}
],
"credentialsConfig": [],
"io": {
"inputs": [
"Main"
],
"outputs": [
"Main"
],
"outputNames": [],
"hints": {}
},
"wiring": {
"role": "generic",
"requires": [],
"optional": [],
"consumedBy": [],
"consumes": [
"Main"
],
"produces": [
"Main"
]
}
}