You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@age.apache.org by "safi50 (via GitHub)" <gi...@apache.org> on 2023/04/26 06:11:26 UTC
[GitHub] [age] safi50 commented on issue #856: Python driver : After adding an edge It should return an edge object as a token of successfully added
safi50 commented on issue #856:
URL: https://github.com/apache/age/issues/856#issuecomment-1522841653
From your above code, adding edge doesn't return anything because there is no return statement in the cypher query.
Modify your cypher to include a return statement and you'll find the desired values.
```
query ="""
SELECT * from cypher(
'test_Graph',
$$
MATCH (a), (b)
WHERE id(a) = 844424930131969 AND id(b) = 844424930131970
CREATE (a)-[r:ProjectLeader {firstMeet : 'Jan-21-2019'}]->(b)
RETURN r
$$) as (v agtype);
"""
```
--
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: dev-unsubscribe@age.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org