cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

How to merge two columns from csv into one node?

I want to be able to create one node from two different columns in a CSV when importing the data.

Column 1: AE19
Column 2: 1202

Resulting node: AE19.1202

Is there a cypher, neo4j, or apoc command that can do this when loading the data in from a CSV?

1 ACCEPTED SOLUTION

yyyguy
Graph Buddy

Hey @matthew.cash,

When you are creating a node, use the following example as a potential approach:

MERGE (n:Node {combined: toString(Column 1) + toString(Column 2)})

-yyyguy

View solution in original post

2 REPLIES 2

yyyguy
Graph Buddy

Hey @matthew.cash,

When you are creating a node, use the following example as a potential approach:

MERGE (n:Node {combined: toString(Column 1) + toString(Column 2)})

-yyyguy

worked perfect, thank you!