Javatpoint Logo
Javatpoint Logo

Select Data with MATCH

MATCH statement is used to fetch the data which matches a given criteria. MATCH statement is also used to perform some operation and return the all nodes.

Fetch a single Node

Create a node:

Fetch single record:

Output:

Neo4j Data with match 1

Fetch all Nodes

If you want to retrieve all nodes from a database, just avoid the filters.

Use the following code to retrieve all nodes from a database:

Output:

Neo4j Data with match 2

You can see it also in tabular form:

Tabular form:

Neo4j Data with match 3




Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA