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 combine a node property first name and node property last name into on property full name

Trying to combine two separate name properties of one node to a "combined" node. Suggestions to the solutions are appreciated

1 REPLY 1

Hi,

I don't understand exactly if you want to add a new property to existing node or create a new node.

In case 1:

MATCH (c)
WITH c
SET c.fullName = c.name + " " + c.lastName

In case 2:

MATCH (c)
WITH c
CREATE (cc:LabelCopy {fullName: c.name + " " + c.lastName})