MuhammadTahaNaveed commented on issue #1033:
URL: https://github.com/apache/age/issues/1033#issuecomment-1634701511
> I think the misunderstanding is that the VLE component doesn't return an
array of edges, it returns a row for each edge found.
@jrgemignani Oh okay. I think get what you are saying.
For example, if I create the following path.
```
SELECT * FROM cypher('new',$$CREATE ()-[:KNOWS]->()-[:KNOWS]->()$$) as (a
agtype);
```
Then it would return
```
age=# SELECT * FROM cypher('new',$$MATCH ()<-[x *]-() RETURN x$$) as (a
agtype);
a
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------
[{"id": 844424930131970, "label": "KNOWS", "end_id": 281474976710658,
"start_id": 281474976710657, "properties": {}}::edge]
[{"id": 844424930131969, "label": "KNOWS", "end_id": 281474976710659,
"start_id": 281474976710658, "properties": {}}::edge]
[{"id": 844424930131969, "label": "KNOWS", "end_id": 281474976710659,
"start_id": 281474976710658, "properties": {}}::edge, {"id": 844424930131970,
"label": "KNOWS", "end_id": 2814749767106
58, "start_id": 281474976710657, "properties": {}}::edge]
(3 rows)
```
edges wrapped in array for each path found for the pattern in MATCH? Right ?
--
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]