What's the proper approach instead of deprecated `id()` function, for selected `$nodes` in a Scene Action?

Tutorial (Scene actions - Neo4j Bloom) still suggests WHERE id(n) in $nodes for operating on selected nodes, but Bloom correctly complain that deprecated id() function is used there. I tested that to simply substitute id with elementId and then it doesn't really work.

What's the proper approach nowadays?