User-defined functions
There are two main types of functions that can be developed and used:
| Type | Description | Usage | Developing | 
|---|---|---|---|
| Scalar | For each row the function takes parameters and returns a result | ||
| Aggregating | Consumes many rows and produces an aggregated result | 
User-defined scalar functions
For each incoming row the function takes parameters and returns a single result.
This example shows how you invoke a user-defined function called join from Cypher®.
Call a user-defined function
This calls the user-defined function org.neo4j.procedure.example.join().
Query
MATCH (n:Member) RETURN org.neo4j.function.example.join(collect(n.name)) AS members| members | 
|---|
| 
 | 
| Rows: 1 | 
For developing and deploying user-defined functions in Neo4j, see Extending Neo4j → User-defined functions.