apoc.refactor.setType

Procedure APOC Core

apoc.refactor.setType(rel, 'NEW-TYPE') change relationship-type

Signature

apoc.refactor.setType(relationship :: RELATIONSHIP?, newType :: STRING?) :: (input :: INTEGER?, output :: RELATIONSHIP?, error :: STRING?)

Input parameters

Name Type Default

relationship

RELATIONSHIP?

null

newType

STRING?

null

Output parameters

Name Type

input

INTEGER?

output

RELATIONSHIP?

error

STRING?