Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
06-22-2021 04:51 AM
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,
Solved! Go to Solution.
06-23-2021 04:33 PM
DId you look at the java driver api docs?
https://neo4j.com/docs/api/java-driver/current/org/neo4j/driver/types/Node.html#labels--
06-23-2021 04:33 PM
DId you look at the java driver api docs?
https://neo4j.com/docs/api/java-driver/current/org/neo4j/driver/types/Node.html#labels--
06-23-2021 11:52 PM
Yes, i struggled to find it at first. But u have managed to fix it.
Thanks
All the sessions of the conference are now available online