LOAD CSV
The Cypher clause that reads a CSV file row by row, so those rows can be written into the graph.
Example
One (:Movie) node for every row in the file.
cypher
LOAD CSV WITH HEADERS FROM 'https://data.neo4j.com/importing-fundamentals/movies.csv' AS row
MERGE (m:Movie {movieId: row.movieId})
SET m.title = row.title,
m.year = toInteger(row.year)WITH HEADERS makes row a map keyed by the column names, so row.title reads that column. Every value in it arrives as a string, and toInteger(row.year) stores year as a number.
Lessons that use this term
The lesson and course links below open in a new tab.
8 lessons use this term. Results are ordered by term density.
Importing CSV data into Neo4j3 mentions
- Load your own CSV fileImporting Dataand run a LOAD CSV statement to load the file into2 mentions
- NodesCreating Nodes, Properties, and RelationshipsThe LOAD CSV clause loads the CSV file from the specified1 mention
Importing Data Fundamentals2 mentions
- ToolsImporting data into Neo4jImport tool Cypher and LOAD CSV neo4j-admin ETL tools Custom2 mentions
Introduction to Vector Indexes and Unstructured Data1 mention
- Load embeddingsVector indexesIf you would like to learn more about how to load CSV data into Neo4j, you can take the GraphAcademy [Importing CSV data into1 mention
LOAD CSV Data Import1 mention
- How LOAD CSV WorksImporting with LOAD CSVprovides a built-in Cypher clause called LOAD CSV that reads a [CSV1 mention
GraphRAG Hackathon1 mention
- Hack TimeTime to Buildfrom your own documents to build a knowledge graph Import — load CSV or relational data into your graph through a visual mapping interface Query — run Cypher, or generate it from a1 mention
Importing Data into Neo4j Workshop1 mention
- How can I import data into Neo4j?Importing data into Neo4jData Importer Cypher and LOAD CSV neo4j-admin ETL tools Custom1 mention
Modeling and Importing Data into Neo4j Workshop1 mention
- Understanding the Import ToolBuilding Your Graphfor options like LOAD CSV, neo4j-admin import, and ETL1 mention