Check out example codes for "display all node label neo4j". It will help you in understanding the concepts better.

Code Example 1

MATCH (n) RETURN distinct labels(n)

Learn ReactJs, React Native from akashmittal.com