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

   @mingfang Question - Just curious, why are you doing it this particular way? 
If you use merge as follows, it works -
   
   ```
   psql-16.1-5432-pgsql=# SELECT * FROM cypher('playground', $$
     UNWIND [{first: 'jon', last: 'snow'}, {first: 'ned', last: 'stark'}] AS map
     MERGE (v:PERSON {first: map.first, last: map.last}) RETURN v $$) AS (v 
agtype);
                                                     v
   
-----------------------------------------------------------------------------------------------------
    {"id": 844424930131971, "label": "PERSON", "properties": {"last": "snow", 
"first": "jon"}}::vertex
    {"id": 844424930131972, "label": "PERSON", "properties": {"last": "stark", 
"first": "ned"}}::vertex
   (2 rows)
   
   psql-16.1-5432-pgsql=# SELECT * FROM cypher('playground', $$
     MATCH (v:PERSON)
     RETURN v
   $$) AS (v agtype);
                                                     v
   
-----------------------------------------------------------------------------------------------------
    {"id": 844424930131971, "label": "PERSON", "properties": {"last": "snow", 
"first": "jon"}}::vertex
    {"id": 844424930131972, "label": "PERSON", "properties": {"last": "stark", 
"first": "ned"}}::vertex
   (2 rows)
   
   psql-16.1-5432-pgsql=#
   ```
   
   I'm thinking this might be an issue with SET, and not MERGE.


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