Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
11-23-2020 09:18 PM
Hi,
I want to get ID for each node. I am using movie data from neo4j database.
In Neo4j desktop, i get the output i want.
But when i using the same cypher query in Python, i dont get the same output as in No4j.
Below is my code in Python.
result = tx.run("MATCH (a:Person{name:$name})"
"-[:ACTED_IN]->(listMovie) "
"RETURN a,listMovie as listMovies", name=name).data()
Then this is the output when i apply using Python. There is no ID (identity) for each node.
Please help me, what mistake i did. Thank you!
Solved! Go to Solution.
11-24-2020 12:04 AM
Hello
You are not doing something wrong, should have a look at the function id() to get the Neo4j ID and the function properties() to get the properties of a node
Regards,
Cobra
11-24-2020 12:04 AM
Hello
You are not doing something wrong, should have a look at the function id() to get the Neo4j ID and the function properties() to get the properties of a node
Regards,
Cobra
11-25-2020 09:29 PM
Thanks so much! Got it.
All the sessions of the conference are now available online