MuhammadTahaNaveed commented on issue #1033:
URL: https://github.com/apache/age/issues/1033#issuecomment-1634618004
VLE gives an array of edges. For example
```
SELECT * FROM cypher('graph',$$MATCH ()<-[x *]-() RETURN x$$) as (a agtype);
a
------------------------------------------------------------------------------------------------------------------------------------------
[{"id": 844424930131969, "label": "KNOWS", "end_id": 281474976710658,
"start_id": 281474976710657, "properties": {"n0": "hello"}}::edge]
```
Now if we try to access a certain property from first edge in array, I
should be able to do the query expecting the following result
```
age=# SELECT * FROM cypher('graph',$$MATCH ()<-[x *]-() RETURN x[0].n0$$) as
(a agtype);
a
---------
"hello"
(1 row)
```
But instead, it errors out.
```
age=# SELECT * FROM cypher('graph',$$MATCH ()<-[x *]-() RETURN x[0].n0$$) as
(a agtype);
ERROR: container must be an array or object
```
I hope this explains.
--
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]