apoc.merge.nodeWithStats

Procedure APOC Core

apoc.merge.nodeWithStats - same as apoc.merge.node providing queryStatistics into result

Signature

apoc.merge.nodeWithStats(label :: LIST? OF STRING?, identProps :: MAP?, onCreateProps = {} :: MAP?, onMatchProps = {} :: MAP?) :: (stats :: MAP?, node :: NODE?)

Input parameters

Name Type Default Description

label

LIST? OF STRING?

null

The list of labels used for the generated merge statement. Passing null or an empty list will merge a node without any labels. null or empty strings within the list are not supported.

identProps

MAP?

null

Properties that are always merged.

onCreateProps

MAP?

{}

Properties that are merged when a node is created.

onMatchProps

MAP?

{}

Properties that are merged when a node is matched.

Output parameters

Name Type

stats

MAP?

node

NODE?