UNWIND 将一个列表展开为一个行的序列spa
// 指定一个集合,行展开it
unwind [1,2,3] as x
return xio
//集合去重nio
with [1,1,2,2] as coll
unwind coll as x
with distinct x
return collect(x) as setnw
union 用于将多个查询结果组合起来
--查询到的列名和列数必须彻底一致
-- all union 会包含全部结果。而 union 会去重查询
match (u:User{id:1})
return u.name as name
union all
match (o:User{id:8})
return o.name as name集合