jrgemignani commented on issue #1767:
URL: https://github.com/apache/age/issues/1767#issuecomment-2078301973

   @clxman I have found out how to get this to work and will have a PR to 
address this for the **master** branch shortly -
   
   ```
   psql-16.1-5432-pgsql=# SELECT * FROM cypher('test', $$ MATCH (a)-[e]->(b) 
RETURN e $$) as (n agtype);
                                                                n
   
---------------------------------------------------------------------------------------------------------------------------
    {"id": 844424930131969, "label": "knows", "end_id": 281474976710658, 
"start_id": 281474976710657, "properties": {}}::edge
    {"id": 844424930131970, "label": "knows", "end_id": 281474976710660, 
"start_id": 281474976710659, "properties": {}}::edge
    {"id": 844424930131971, "label": "knows", "end_id": 281474976710662, 
"start_id": 281474976710661, "properties": {}}::edge
    {"id": 844424930131972, "label": "knows", "end_id": 281474976710664, 
"start_id": 281474976710663, "properties": {}}::edge
    {"id": 844424930131973, "label": "knows", "end_id": 281474976710666, 
"start_id": 281474976710665, "properties": {}}::edge
   (5 rows)
   
   psql-16.1-5432-pgsql=# create table tt3 as (SELECT * FROM cypher('test', $$ 
MATCH (a)-[e]->(b) RETURN e $$) as (e agtype));
   SELECT 5
   psql-16.1-5432-pgsql=# select * from tt3;
                                                                e
   
---------------------------------------------------------------------------------------------------------------------------
    {"id": 844424930131969, "label": "knows", "end_id": 281474976710658, 
"start_id": 281474976710657, "properties": {}}::edge
    {"id": 844424930131970, "label": "knows", "end_id": 281474976710660, 
"start_id": 281474976710659, "properties": {}}::edge
    {"id": 844424930131971, "label": "knows", "end_id": 281474976710662, 
"start_id": 281474976710661, "properties": {}}::edge
    {"id": 844424930131972, "label": "knows", "end_id": 281474976710664, 
"start_id": 281474976710663, "properties": {}}::edge
    {"id": 844424930131973, "label": "knows", "end_id": 281474976710666, 
"start_id": 281474976710665, "properties": {}}::edge
   (5 rows)
   
   psql-16.1-5432-pgsql=#
   ```


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to