DEV Community

Cover image for Select All graphs from Apache Age
Muhammad Muneeb Ur Rehman
Muhammad Muneeb Ur Rehman

Posted on

Select All graphs from Apache Age

We can select all graphs present in our PostgreSQL Database by executing a simple query.

If you have already set the search path by using:

SET search_path = ag_catalog, "$user", public;

You can select all graphs in the Database by using:

SELECT * FROM ag_graph;

Otherwise, if you have not set the search path. You can select all graphs in the Database by using:

SELECT * FROM ag_catalog.ag_graph;

It's output will look like this:

name namespace
graph graph
staff_details staff_details
visual visual
community_test community_test

(4 rows)

This is how we get names of all the graphs that exist in our PostgreSQL database.

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

Oldest comments (0)