pdpotter commented on issue #44: URL: https://github.com/apache/incubator-age/issues/44#issuecomment-951881792
I think I found the source of this issue: * For updating existing properties: https://github.com/apache/incubator-age/blob/bf35db2982b0e2f71925129513efa822c7b995cb/src/backend/utils/adt/agtype.c#L7404 * For adding new properties: https://github.com/apache/incubator-age/blob/bf35db2982b0e2f71925129513efa822c7b995cb/src/backend/utils/adt/agtype.c#L7424 When `get_ith_agtype_value_from_container(&new_v->root, 0)` is changed to `get_ith_agtype_value_from_container(&new_v->root, 1)`, then the second value from the list is used: ``` SELECT * FROM cypher('testgraph', $$MATCH (ve:Test {id: 1}) SET ve.a = ['c', 'd'] return ve$$) as (a agtype); a -------------------------------------------------------------------------------------- {"id": 1688849860263974, "label": "Test", "properties": {"a": "d", "id": 1}}::vertex (1 row) ``` Unfortunately, I can't find how to change these lines to make the complete list being assigned to `new_agtype_value_v`. -- 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