+1 vote
in Databases by (60.0k points)
I want to transform the elements of a list into rows in a Cypher query. How should I do it?

E.g.

From [10,20,30] to

10

20

30

1 Answer

+2 votes
by (77.2k points)
selected by
 
Best answer

The UNWIND clause can be used to convert any list into rows.

Here is an example:

UNWIND [10, 20, 30] AS vals

RETURN vals

The above query will return 
10
20
30

Related questions


...