User-Defined Functions

Users may define custom functions for use with AGE. Within Cypher queries, all function calls resolve to the default namespace: ag_catalog. To invoke a function outside this namespace, prefix the function name with its namespace.

Syntax: namespace_name.function_name

Query:

SELECT *
FROM cypher('graph_name', $$
RETURN pg_catalog.sqrt(25)
$$) as (result agtype);

Result:

result
25