How do I reference a node in relationship property

I think maybe Neo4j doesn't support variable or node types relationship property, I don't know if this is the case, then my idea may not be realized