neo4j cypher: how to change the type of a relationship

后端 未结 5 1809
粉色の甜心
粉色の甜心 2020-12-08 07:44

I can\'t find a way to change a relationship type in Cypher. Is this operation possible at all? If not: what\'s the best way achieve this result?

5条回答
  •  猫巷女王i
    2020-12-08 08:10

    You can't, the type of a relationship is constitutive or essential, as opposed to node labels which are arbitrary bags to group nodes. (See this q/a for an analogy.) You have to create the new relationship, delete the old (and copy properties if there are any).

提交回复
热议问题