You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@age.apache.org by GitBox <gi...@apache.org> on 2021/04/12 04:09:11 UTC

[GitHub] [incubator-age] emotionbug opened a new issue #53: exists `label(...)` function in AGE?

emotionbug opened a new issue #53:
URL: https://github.com/apache/incubator-age/issues/53


   I want to querying label as row. but, i can't find `label` function like AgensGraph or Neo4j.
   so, currently using follow function,  `ag_catalog._label_name(oid, v | e)` like behind.
   
   i think it is not suitable to use.
   
   so, any other ways to querying to get label string?
   
   
   ```sql
   -- $schema_name
   SELECT label, count(label) as cnt
   FROM (
            SELECT ag_catalog._label_name(oid, v)::text as label
            from cypher('$schema_name', $$
                MATCH (V)
                RETURN id(V)
                $$) as (V agtype), (SELECT oid FROM ag_catalog.ag_graph where name = '$schema_name') as oid
        ) b
   GROUP BY b.label;
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-age] emotionbug closed issue #53: exists `label(...)` function in AGE?

Posted by GitBox <gi...@apache.org>.
emotionbug closed issue #53:
URL: https://github.com/apache/incubator-age/issues/53


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org