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

   I could have sworn that we fixed this bug a while ago. Sigh,... here it is 
with just a simple merge command.
   
   ```
   psql-16.2-5432-psql=# SELECT * FROM cypher('test_graph', $$
   MERGE (a {name: 'Test Node A'})-[r:RELATED_TO]->(b {name: 'Test Node B'})
   SET r = {property1: 'something'} RETURN r $$) AS (r agtype);
                                                                               r
   
   
------------------------------------------------------------------------------------------------------------------------------------
   ---------------------
    {"id": 1125899906842630, "label": "RELATED_TO", "end_id": 281474976710664, 
"start_id": 281474976710663, "properties": {"property1":
    "something"}}::edge
   (1 row)
   
   psql-16.2-5432-psql=# SELECT * FROM cypher('test_graph', $$ MATCH 
(a)-[r]->(b) return r $$) AS (r agtype);
                                                                   r
   
---------------------------------------------------------------------------------------------------------------------------------
    {"id": 1125899906842630, "label": "RELATED_TO", "end_id": 281474976710664, 
"start_id": 281474976710663, "properties": {}}::edge
   (1 row)
   
   psql-16.2-5432-psql=#
   ```


-- 
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-unsubscr...@age.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to