›Procedures read and write the graph
2.1 · Lesson
Procedures read and write the graph
A function can score one piece of text, but it cannot score every headline in the graph and save the results. A function is read-only and returns a single value. To change the graph, or to return many rows, you need a procedure.
| Function | Procedure | |
|---|---|---|
| Annotation | @UserFunction | @Procedure |
| Can write to the graph | No | Yes, in WRITE mode |
| Returns | One value | A stream of rows |
| Called with | An expression | CALL, with optional YIELD |
Join GraphAcademy to keep learning
Create your account to unlock 80+ hours of hands-on Neo4j courses, track your progress, and earn a certificate when you complete the course.
Sign in or register