apoc.merge.nodeWithStats.eager

Details

Syntax

apoc.merge.nodeWithStats.eager(labels, identProps [, onCreateProps, onMatchProps ]) :: (stats, node)

Description

Merges the given NODE values with the given dynamic labels eagerly. Provides queryStatistics in the result.

Input arguments

Name

Type

Description

labels

LIST<STRING>

The list of labels used for the generated MERGE statement.

identProps

MAP

Properties on the node that are always merged.

onCreateProps

MAP

Properties that are merged when a node is created. The default is: {}.

onMatchProps

MAP

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

Return arguments

Name

Type

Description

stats

MAP

The returned query statistics.

node

NODE

The updated node.