Agensgraph 쿼리 연습을 하던 중 SET(UPDATE) 구문으로 기존값 + 신규값을 지정해보자 싶어서 시도했는데 실제로 사용하다보면 사용할 일이 있을 것 같아 기록합니다.
우선 좋은 참고자료가 있어 링크를 남깁니다.
https://okky.kr/questions/260614
어려울게 아니니 결과만 정리겠습니다.
match (v:person)-[e:acted_in]-(m:movie{title:'The Matrix'}) set m.title=m.title+'The Matrixes';
그 후 조회를 해봤더니 잘 변경되어있음을 확인할 수 있었다.
{"id": 1125899906842625, "label": "movie", "properties": {"title": "The MatrixThe Matrixes", "tagline": "Welcome to the Real World", "released": 1999::numeric}}::vertex