limit.json•1.15 kB
{
"nodeType": "n8n-nodes-base.limit",
"displayName": "Limit",
"description": "Restrict the number of items",
"version": 1,
"properties": [
{
"name": "maxItems",
"displayName": "Max Items",
"type": "number",
"default": 1,
"description": "If there are more items than this number, some are removed",
"typeOptions": {
"minValue": 1
}
},
{
"name": "keep",
"displayName": "Keep",
"type": "options",
"default": "firstItems",
"description": "When removing items, whether to keep the ones at the start or the ending",
"options": [
{
"name": "First Items",
"value": "firstItems"
},
{
"name": "Last Items",
"value": "lastItems"
}
]
}
],
"credentialsConfig": [],
"io": {
"inputs": [
"Main"
],
"outputs": [
"Main"
],
"outputNames": [],
"hints": {}
},
"wiring": {
"role": "generic",
"requires": [],
"optional": [],
"consumedBy": [],
"consumes": [
"Main"
],
"produces": [
"Main"
]
}
}