cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Getting node type from Java Query

Hey everyone, i using a java driver to query a graph database in java and get their values. I am working on transforming the data structure of the result to suitable data structure to apply my own algorithms.

So i am applying a query now : "Match (n) - [r] -> (m) Return n,r,m"
Is there a way when i get the results and iterate through the result List to know what type n is in each record? In the database i have 50 different labels. I want to know what label each node is.Any help is appreciated.

Thank you for the help,

1 ACCEPTED SOLUTION
2 REPLIES 2

Yes, i struggled to find it at first. But u have managed to fix it.
Thanks