apoc.merge.relationship.eager

Procedure APOC Core

apoc.merge.relationship(startNode, relType, identProps:{key:value, …​}, onCreateProps:{key:value, …​}, endNode, onMatchProps:{key:value, …​}) - merge relationship with dynamic type, with support for setting properties ON CREATE or ON MATCH

Signature

apoc.merge.relationship.eager(startNode :: NODE?, relationshipType :: STRING?, identProps :: MAP?, onCreateProps :: MAP?, endNode :: NODE?, onMatchProps = {} :: MAP?) :: (rel :: RELATIONSHIP?)

Input parameters

Name Type Default Description

startNode

NODE?

null

Start node of the merge pattern.

relationshipType

STRING?

null

Relationship type of the merge pattern.

identProps

MAP?

null

Properties on the relationships that are always merged.

onCreateProps

MAP?

null

Properties that are merged when the relationship is created.

endNode

NODE?

null

End node of the merge pattern.

onMatchProps

MAP?

{}

Properties that are merged when the relationship is matched.

Output parameters