When to use $node['Node Name'] vs $('Node Name')?

When using a code block (is this relevant?), what is the difference between $('Node Name') and $node['Node Name']. They seem to behave differently.

I’ve read Built in methods and variables reference - n8n Documentation and it mentions the $() ones, but not $node.

Does it matter which one I use?

Welcome to the community @j0dan !

$node["Node Name"] it the old legacy one. Moving forward, only $('Node Name') should be used. For that reason did we remove it from the docs. I hope that makes sense.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.