Lets say I have a node with a property, Event
, that is assigned a StringArray. I am trying to extract '6013' and '6005' that were assigned from a collection when the node was created ( see below for creation query code) and assign them to as another property.
I tried using SPLIT
but it does not work with what neo4j refers to as StringArray.
Event: ["EventLog/6013", "EventLog/6005"]
Creation Query: Event assigned from collection
...
WITH act.timestamp as timestamp, COLLECT(DISTINCT act.message) as messages, COLLECT(DISTINCT obt.filename) as filenames, COLLECT(act) as acts
CREATE (a{ Event: filenames, Description:messages, timestamp:timestamp})
FOREACH (act in acts | CREATE (act)-[:LINK]->(a))
Desired Node:
Event: ["EventLog/6013", "EventLog/6005"]
Assinged: [6013, 6005]