Neo4j LOAD CSV Error: Query cannot conclude with LOAD CSV

Viewed 5420

I'm using Chrome as browser interface in Windows10 to load a CSV file in Neo4j 3.2.1, but the command

LOAD CSV FROM "file:///C:/dir/file.csv" AS row

returns the error

Neo.ClientError.Statement.SyntaxError

Query cannot conclude with LOAD CSV (must be RETURN or an update clause)

Any help to understand what is wrong?

2 Answers

In addition to above you may also return the whole row, this is for viewing only:

LOAD CSV FROM "file:///C:/dir/file.csv" AS row RETURN row

Also you may want to limit the number of rows read and displayed like 'limit 5' This syntax is used to do a quick view of your data how it looks etc.

Related