MATCH (n)
RETURN n
In the neo4j graph database, we use Cypher queries to add and get data. To retrieve all nodes or data points in the neo4j graph database we can use the above Cypher query which will show you all nodes in the graph database.
We have created a sample database and when we run this query in the neo4j environment it will return you all nodes which will look like the below image.
Here, we have created two nodes Movie and Person where the person is related to one or multiple movies. The relationship can be easily created in the neo4j graph database.
MATCH (n)
RETURN n
LIMIT 10
0 Comments