Neo4j Update

Overview

The Neo4j Update Snap updates the properties of existing nodes in your Neo4j database that match the specified criteria.

The Snap matches nodes by label and filter, then applies the property values supplied in the incoming document. Nodes that do not match are left unchanged. To create nodes that do not yet exist, use the Neo4j Write Snap with the MERGE operation.


Neo4j Update
  • This is a Write-type Snap.

Supported Accounts

Snap views

Type Description Examples of upstream and downstream Snaps
Input

This Snap has one document input view.

Each incoming document supplies the property values to apply to the matching nodes.

Output

This Snap has at most one document output view.

Each output document reports the result of the update for the corresponding input document.

Learn more about Error handling.

Snap settings

Note: Learn about the common controls in the Snap settings dialog.
Field/Field set Description

Label*

String

Specify a unique name for the Snap. Modify this to be more appropriate, especially if more than one of the same Snaps is in the pipeline.

Default value: Neo4j Update

Node label*

String/Expression

Enter the label of the nodes to update.

Default value: None

Example: Customer

Filter

String/Expression

Enter the Cypher predicate that identifies the nodes to update. Reference node properties with the n. prefix. Leave the field empty to update every node with the specified label.

Default value: None

Example: n.customerId = $customerId

Batch size

Integer/Expression

Enter the number of documents the Snap applies to Neo4j in a single transaction.

Default value: 1000

Example: 500

Snap execution

Dropdown list
Choose one of the three modes in which the Snap executes. Available options are:
  • Validate & Execute: Performs limited execution of the Snap and generates a data preview during pipeline validation. Subsequently, performs full execution of the Snap (unlimited records) during pipeline runtime.
  • Execute only: Performs full execution of the Snap during pipeline execution without generating preview data.
  • Disabled: Disables the Snap and all Snaps that are downstream from it.

Default value: Execute only

Troubleshooting

Error Reason Resolution
Node label is required The Node label field is empty. Provide a non-empty node label in the Node label field.
Neo4j operation failed The Filter expression contains a syntax error or references a property that does not exist in the target database. Verify the Cypher predicate in the Filter field. Ensure all property names are prefixed with n. and the expression is valid Cypher syntax.