> For the complete documentation index, see [llms.txt](https://gchandra.gitbook.io/big-data-and-tools-with-nosql/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gchandra.gitbook.io/big-data-and-tools-with-nosql/nosql/neo4j/examples/update-nodes.md).

# Update Nodes

```cypher
// 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

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

SHOW INDEXES

DROP INDEX student_name
```
