Skip to content

Commit 2fb368f

Browse files
authored
change from header to headers (#181)
1 parent d639631 commit 2fb368f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cypher/load_csv.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ MERGE (a:Actor {name: row[name], birth_year: toInteger(row[birthyear])})
7070
RETURN a.name, a.birth_year
7171
```
7272

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
7474
is no longer an `array` but rather a `map`, accessing the individual elements
7575
is done via their column name.
7676

@@ -96,15 +96,15 @@ We'll create a new graph connecting actors to the movies they've acted in
9696
Load actors:
9797

9898
```cypher
99-
LOAD CSV WITH HEADER FROM 'file://actors.csv'
99+
LOAD CSV WITH HEADERS FROM 'file://actors.csv'
100100
AS row
101101
MERGE (a:Actor {name:row['name']})
102102
```
103103

104104
Load movies and create `ACTED_IN` relations:
105105

106106
```cypher
107-
LOAD CSV WITH HEADER FROM 'file://acted_in.csv'
107+
LOAD CSV WITH HEADERS FROM 'file://acted_in.csv'
108108
AS row
109109
110110
MATCH (a:Actor {name: row['actor']})

0 commit comments

Comments
 (0)