mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-11 21:07:28 -08:00
📚 Add documentation about usage of executeSingle
This commit is contained in:
parent
247e4d5c6f
commit
af5c7e75fa
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue