LET
An untyped LET clause evaluates expressions for each incoming row and introduces named bindings. Bindings may contain scalars, lists or graph element references. Arithmetic and concatenation on a mixed property use each source fragment’s stored type.
LET base = 6, answer = base * 7FILTER answer > 40RETURN answer;An element alias preserves graph, element kind and identity. Subsequent property lookups resolve that element. Resolving the reference keeps the incoming row order, so an earlier ORDER BY still applies.
MATCH (p:Person {name: 'Alice'})LET person = pRETURN person.name AS name;Typed LET VALUE definitions are accepted by the parser but not executed in query pipelines. The scalar LET ... IN ... END expression is also syntax only; it is distinct from this executable clause. Use session parameter declarations when you need supported type validation.