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.

FunctionProcedure
Annotation@UserFunction@Procedure
Can write to the graphNoYes, in WRITE mode
ReturnsOne valueA stream of rows
Called withAn expressionCALL, with optional YIELD