blob: 8a173b517a351dd14a72d77811c6285dcceff704 [file] [log] [blame]
SELECT label, count(label) as cnt
FROM (
SELECT ag_catalog._label_name(oid, v)::text as label
from cypher('%s', $$
MATCH (V:_ag_label_vertex)
RETURN id(V)
$$) as (V agtype), (SELECT oid FROM ag_catalog.ag_graph where name = '%s') as oid
) b
GROUP BY b.label;
-- TODO: COUNT needs AGE supporting or Client-side processing.