Untitled

mail@pastecode.io avatar
unknown
mysql
15 days ago
292 B
0
Indexable
Never
LOAD CSV WITH HEADERS FROM "file:///BussGT.csv" AS line
WITH line, apoc.convert.fromJsonList(line.Relation) AS relations

UNWIND relations AS rel
MERGE (gt:BussGT { name: line.Source + '_' + line.Target })
SET gt.source = line.Source, gt.target = line.Target
SET gt.relation = relations
Leave a Comment