Hi,
I am loading a csv that a portion of it looks like below:
1. Report Field
2. Source System Mapping and Transformation Logic
3. Source System Mapping New Fields
4. Source System FPML
UTI ID
USI
normalize-space
USI ID
CASE 1
USI ID Prefix
CASE 2
The nodes would be under the headers in each column, and the relationships would flow from 1. -> 2. -> 3. -> 4. The intent would be to include the blank cells as nodes as placeholders for visualization. However when importing, the first row has no nodes after "UTI ID" and similarly, no blank nodes after "CASE 1" and "CASE 2"
My partial cypher is this:
LOAD CSV WITH HEADERS FROM 'file:///file.csv' AS line
MATCH (fn:FieldName{name: line.`1. Report Field ``})
CREATE (im:SourceSystemMapping:{name: line.`2. Source System Mapping and Transformation Logic)`})
WITH fn, im
CREATE (fn)-[:RELTYPE]-> (im);
LOAD CSV WITH HEADERS FROM 'file:///file.csv' AS line
MATCH (im:SourceSystemMapping:{name: line.`2. Source System Mapping and Transformation Logic)`})
CREATE (jm:SourceSystemCFTC:Murex{name: line.`3. Source System Mapping New Fields`})
WITH im, jm
CREATE (im)-[:RELTYPE]-> (jm);
Is there a conditional clause or FOREACH clause that exists that would include the empty nodes so that the other related nodes are imported?