Skip to Content
CypherQueryUNWIND Clause

UNWIND Clause

Overview

The UNWIND clause converts a list into a sequence of rows, expanding list elements into individual records. This is particularly useful for processing collections, and handling list inputs in queries.

Syntax

UNWIND expression AS variable

Examples

Flattening nested lists:

UNWIND [[1,2], [3,4], 5] AS numbers RETURN numbers
Last updated on