apoc.merge.relationship.eager

Details

Syntax

apoc.merge.relationship.eager(startNode, relType, identProps, onCreateProps, endNode [, onMatchProps ]) :: (rel)

Description

Merges the given RELATIONSHIP values with the given dynamic types/properties eagerly.

Input arguments

Name

Type

Description

startNode

NODE

The start node of the relationship.

relType

STRING

The type of the relationship.

identProps

MAP

Properties on the relationship that are always merged.

onCreateProps

MAP

Properties that are merged when a relationship is created.

endNode

NODE

The end node of the relationship.

onMatchProps

MAP

Properties that are merged when a relationship is matched. The default is: {}.

Return arguments

Name

Type

Description

rel

RELATIONSHIP

The updated relationship.