merge_nodes

mutationSince v1.0

Merge duplicate nodes into a single node. All relationships from merged nodes are redirected to the kept node. The merged nodes are then deleted. Use find_similar_nodes to identify candidates.

Parameters

NameTypeRequiredDefaultDescription
keep_node_idString✓[merge_nodes] UUID of the node to keep after the merge. Required.
merge_node_idsArray<String>✓[merge_nodes] The nodes to merge into keep_node_id. Their relationships move to the kept node, and they are deleted.
property_strategyString—keep_target[merge_nodes] How property values are combined: keep_target, keep_longest or concatenate.

Example Request

{"keep_node_id": "uuid-1", "merge_node_ids": ["uuid-2", "uuid-3"], "property_strategy": "keep_longest"}

Example Response

{"success": true, "operation_count": 5, "versions": [49, 50, 51, 52, 53]}

This content was written collaboratively with AI.