AiAdvisors
Back to the index
//n8n pitfalls · medium

Code node $input.all() vs $input.first()

$input.all() returns ALL items from the previous node as an array. $input.first() returns only the first item. When processing multiple items, always use $input.all() and iterate, or use the "Run Once for Each Item" mode. Common mistake: using $input.first() when multiple items are expected.

Category
n8n_general

Source: the n8n-mcp pitfall list, maintained by the tool's author

Mistakes AI agents make in n8n

//Contact

Let's talk about AI in your business

Book a free strategic consultation and discover what AI can do for your company.

or write: romuald@aiadvisors.pl · +48 695 263 884