User Defined Functions
Users may add custom functions to AGE. When using Cypher functions, all function calls with a Cypher query use the default namespace of: ag_catalog
. However if a user wants to use a function outside of this namespace, they may do so by adding the namespace before the function name.
Syntax: namespace_name.function_name
Query
SELECT *
FROM cypher('graph_name', $$
RETURN pg_catalog.sqrt(25)
$$) as (result agtype);
Result:
result |
25 |
1 row(s) returned |