apoc.merge.relationshipWithStats
Procedure
apoc.merge.relationshipWithStats(startNode NODE, relType STRING, identProps MAP<STRING, ANY>, onCreateProps MAP<STRING, ANY>, endNode NODE, onMatchProps MAP<STRING, ANY>)
- merges the given RELATIONSHIP
values with the given dynamic types/properties.
Provides queryStatistics in the 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 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. |