2.9.2 Functions
A Function is a Projection like a View, except that its Cypher can return anything, such as counts, aggregations or single values, not only nodes and relationships.
Create a Function
Choose Add New, then Add function, and fill in:
- Title: a name for the Function.
- Description (optional): a short description.
- Function slug: the unique identifier used to run the Function. It may contain only lower-case letters, digits and hyphens, and may not start or end with a hyphen.
- Definition: the Cypher query (for example
MATCH (c:docs_customers)-[:PLACED]->(o:docs_orders) WHERE c.country = $country RETURN c.company_name AS customer, count(o) AS orders ORDER BY orders DESC). - Query timeout (seconds) (optional): see Query timeout.
Reference any parameters in the query with a $ prefix; they appear under Parameters for you to give values. You can also let Ask AI write the query. Choose Save.

Execute a Function
Set values for any parameters, then choose Execute function (or Execute draft or Execute v1.0, depending on the selected version). Because a Function can return any shape of data, the Result is shown in the JSON viewer or as a String rather than as a graph. Use Copy result to copy it, and Re-run to run the query again. If the run fails, Fix with AI helps you correct the query.
Manage a Function
From the Function's ⋮ menu:
- Duplicate Function: create a copy as a new draft.
- Delete Function: remove the Function. Deleting its last version removes the Function entirely.
Use the Version section to Publish version (make a draft live) and to manage the version history. See Versions for how draft and published versions work.