DEV Community

Muhammad Muneeb Ur Rehman
Muhammad Muneeb Ur Rehman

Posted on

Apache AGE Query Format

In Apache AGE, hybrid query approach is used. The Query format is mixture of SQL and Cypher. It makes AGE Query Language a more powerful Query Language.

Cypher() executes the cypher query passed as an argument.

cypher(graph_name, query_string, parameters)

General Form of Query in AGE:

SELECT * FROM cypher('graph_name', $$
/* Cypher Query Here */
$$) AS (result1 agtype, result2 agtype);

SELECT Clause
Calling Cypher in the SELECT clause as an independent column is not allowed. However, Cypher may be used when it belongs as a conditional.

Not Allowed
SELECT
cypher('graph_name', $$
/* Cypher Query Here */
$$) AS (result1 agtype, result2 agtype);

For more details visit: https://age.apache.org/overview/

AGE Github Link: https://github.com/apache/age

AGE Viewer Github Link: https://github.com/apache/age-viewer

Top comments (0)