Check out example codes for "neo4j display all nodes and relationships". It will help you in understanding the concepts better.

Code Example 1

Match (n)-[r]->(m)
Return n,r,m

Learn ReactJs, React Native from akashmittal.com