15.6. Set Relationship Tsype

With a simple relationship between two node

CREATE (f:Foo)-[rel:FOOBAR]->(b:Bar)
apoc.refactor.setType.dataset

We can change the relationship type from FOOBAR to NEW-TYPE

MATCH (f:Foo)-[rel:FOOBAR]->(b:Bar) with rel
CALL apoc.refactor.setType(rel, 'NEW-TYPE') YIELD input, output RETURN *
apoc.refactor.setType