apoc.merge.relationshipWithStats

Procedure APOC Core

apoc.merge.relationshipWithStats - same as apoc.merge.relationship providing queryStatistics into result

Signature

apoc.merge.relationshipWithStats(startNode :: NODE?, relationshipType :: STRING?, identProps :: MAP?, onCreateProps :: MAP?, endNode :: NODE?, onMatchProps = {} :: MAP?) :: (stats :: 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

Name Type

stats

MAP?

rel

RELATIONSHIP?