is there a way to get length of a string in Neo4j cypher?
cypher, neo4j
Solution
To return the length of a string in Cypher, use the `SIZE()` function. The `LENGTH()` function is now exclusively used for measuring PATHs in the graph.
`RETURN size("This is an example string")`
yields 25
From the good folks at Neo: "This feature is deprecated and will be removed in future versions. Using `length` on anything that is not a path is deprecated, please use `size` instead"
Problem
pretty simple question, is there a way to get length of a string in Neo4j cypher? I cannot find any document for that. thanks