So I have the id of a node and I want to get the node. For example I have the ID 1 and I want to print out the name of the node with the ID 1.
I mean btw the "internal" ID of neo4j:
So I have the id of a node and I want to get the node. For example I have the ID 1 and I want to print out the name of the node with the ID 1.
I mean btw the "internal" ID of neo4j:
Depends on how you want to do it. In neomodel, I think
StructuredNode
class instances have a._id
field. So if you have a node in memory, you can get its ID that way.If you don't have a node that way, you can use cypher and the
id()
function:Edit Access by ID: