Hi All,
I'm using apoc.merge.node to load a CSV one of my fields is an array.
How do I add elements to an array property with APOC?
Somehow I need to reference what has already been entered into the array.
In the following Cypher I've labeled what I'm missing with "Elements_Already_Here" but I'm not sure how to do this? Maybe I'm on the wrong path and need to do it another way.
LOAD CSV WITH HEADERS FROM 'file:/hrsm-upload-sample.csv' AS line
CALL apoc.merge.node(
["BusinessRole"],{name:line.FullTitle},
{PositionNumber:[line.PositionNumber]},
{PositionNumber:[Elements_Already_Here] + [line.PositionNumber]}
) YIELD node
RETURN node
Thanks in advance.
Lance.