File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ MERGE (a:Actor {name: row[name], birth_year: toInteger(row[birthyear])})
70
70
RETURN a.name, a.birth_year
71
71
```
72
72
73
- Note when a header row exists and ` WITH HEADER ` is specified the ` row ` variable
73
+ Note when a header row exists and ` WITH HEADERS ` is specified the ` row ` variable
74
74
is no longer an ` array ` but rather a ` map ` , accessing the individual elements
75
75
is done via their column name.
76
76
@@ -96,15 +96,15 @@ We'll create a new graph connecting actors to the movies they've acted in
96
96
Load actors:
97
97
98
98
``` cypher
99
- LOAD CSV WITH HEADER FROM 'file://actors.csv'
99
+ LOAD CSV WITH HEADERS FROM 'file://actors.csv'
100
100
AS row
101
101
MERGE (a:Actor {name:row['name']})
102
102
```
103
103
104
104
Load movies and create ` ACTED_IN ` relations:
105
105
106
106
``` cypher
107
- LOAD CSV WITH HEADER FROM 'file://acted_in.csv'
107
+ LOAD CSV WITH HEADERS FROM 'file://acted_in.csv'
108
108
AS row
109
109
110
110
MATCH (a:Actor {name: row['actor']})
You can’t perform that action at this time.
0 commit comments