如何删除neo4j的字符串数组中的空格

时间:2018-01-03 13:02:22

标签: neo4j spring-data-neo4j neo4j-ogm

I want to remove white spaces present inside the array values

(我有scor = [“1”,“1”])。这里,第一个值在右边有空白区域,第二个值在左边有空白区域。如何在neo4j中删除那些空格?

1 个答案:

答案 0 :(得分:0)

cyper具有working with strings的丰富功能。

在您的情况下,您需要trim功能:

UNWIND ["1", "2 ", " 3", " 4 "] as e
RETURN trim(e)