If you try to add a string constant to a list using the + operator, the string addition seems to take precedence over the list when resolving how to apply the operator
# returns "[]a" (wrong)
return []+"a"
# returns "a[]" (wrong)
return "a"+[]
# returns ["a"] (correct)
return []+["a"]
Neo4j:
# returns ["a"]
return []+"a"
# returns ["a"]
return "a"+[]
# returns ["a"]
return []+["a"]
If you try to add a string constant to a list using the
+operator, the string addition seems to take precedence over the list when resolving how to apply the operatorNeo4j: