Update Nodes

// Update existing property

MATCH (a:Student) WHERE a.id = 103 
set a.lastname='Geller';

// Add new property 

MATCH (n {firstname: 'Janice' })
    SET n.favouriteline = 'Oh My God'
    RETURN n.firstname, n.favouriteline;
    

Indexes

CREATE INDEX student_name FOR (n:Student) ON (n.firstname)

SHOW INDEXES

DROP INDEX student_name

Last updated