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

   I think the misunderstanding is that the VLE component doesn't return an 
array of edges, it returns a row for each edge found.
   
   ```
   psql-13.9-5432-pgsql=# SELECT * FROM cypher('graph',$$ MATCH ()<-[x *]-() 
RETURN x $$) as (a agtype);
                                                                       a
   
   
------------------------------------------------------------------------------------------------------------------------------------
   -----
    [{"id": 844424930131969, "label": "KNOWS", "end_id": 281474976710658, 
"start_id": 281474976710657, "properties": {"n": "hello"}}::e
   dge]
    [{"id": 844424930131970, "label": "KNOWS", "end_id": 281474976710660, 
"start_id": 281474976710659, "properties": {"n": "hello"}}::e
   dge]
   (2 rows)
   
   psql-13.9-5432-pgsql=#
   ```
   
   Each edge is an object, not an array. Although, it is wrapped in an array, 
it is still an object. So, only object access operators will work on it.


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