mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
📚 Add documentation about usage of executeSingle
This commit is contained in:
@@ -135,6 +135,15 @@ Method get called when the workflow gets executed
|
|||||||
- `execute`: Executed once no matter how many items
|
- `execute`: Executed once no matter how many items
|
||||||
- `executeSingle`: Executed once for every item
|
- `executeSingle`: Executed once for every item
|
||||||
|
|
||||||
|
By default always `execute` should be used especially when creating a
|
||||||
|
third-party integration. The reason for that is that it is way more flexible
|
||||||
|
and allows to, for example, return a different amount of items than it received
|
||||||
|
as input. This is very important when a node should query data like return
|
||||||
|
all users. In that case, does the node normally just receive one input-item
|
||||||
|
but returns as many as users exist. So in doubt always `execute` should be
|
||||||
|
used!
|
||||||
|
|
||||||
|
|
||||||
**Trigger node**
|
**Trigger node**
|
||||||
|
|
||||||
Method gets called once when the workflow gets activated. It can then trigger
|
Method gets called once when the workflow gets activated. It can then trigger
|
||||||
|
|||||||
Reference in New Issue
Block a user