apoc.refactor.extractNode
Procedure
apoc.refactor.extractNode([rel1,rel2,…], [labels],'OUT','IN') extract node from relationships
Signature
apoc.refactor.extractNode(relationships :: ANY?, labels :: LIST? OF STRING?, outType :: STRING?, inType :: STRING?) :: (input :: INTEGER?, output :: NODE?, error :: STRING?)