Neo4j Read

Overview

The Neo4j Read Snap retrieves nodes of a given label from your Neo4j database, with optional filter, return field, sort, and limit criteria.

Each matching node is emitted as a separate document on the output view. The Snap builds the Cypher MATCH clause from the Node label and Filter fields, so you do not need to write Cypher. To run an arbitrary Cypher query instead, use the Neo4j Execute Snap.


Neo4j Read
  • This is a Read-type Snap.

Supported Accounts

Snap views

Type Description Examples of upstream and downstream Snaps
Input

This Snap has at most one document input view.

When connected, field values from the incoming document can be referenced in expression-enabled fields using the $ notation.

Output

This Snap has one document output view.

Each matching node is emitted as a separate document containing the node's properties.

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 Read

Node label*

String/Expression/ Suggestion

Enter or select the label of the nodes to retrieve. Click the suggestion icon to list the node labels defined in the target database.

Default value: None

Example: Customer

Filter

String/Expression

Enter the Cypher predicate used to filter the matching nodes. Reference node properties with the n. prefix. Leave the field empty to retrieve all nodes with the specified label.

Default value: None

Example: n.country = 'US' AND n.active = true

Return fields

String/Expression

Enter a comma-separated list of node properties to include in each output document. Leave the field empty to return all properties of the matching nodes.

Default value: None

Example: name, email, country

Order by

String/Expression

Enter the node properties to sort the results by, optionally followed by ASC or DESC. Separate multiple properties with commas. Leave the field empty to let Neo4j determine the order.

Default value: None

Example: n.name ASC

Limit

Integer/Expression

Enter the maximum number of nodes to emit per execution. Enter 0 to emit all matching nodes.

Default value: 100

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: Validate & Execute

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.