apoc.merge.relationshipWithStats.eager

Details

Syntax

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

Description

Merges the given RELATIONSHIP values with the given dynamic types/properties eagerly. Provides queryStatistics in the result.

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

stats

MAP

The returned query statistics.

rel

RELATIONSHIP

The updated relationship.