# How do I reference a node in relationship property

**URL:** <https://community.neo4j.com/t/how-do-i-reference-a-node-in-relationship-property/37853>\
**Category:** Modeling\
**Created:** [May 5, 2021, 8:52am UTC](https://community.neo4j.com/t/how-do-i-reference-a-node-in-relationship-property/37853 "2021-05-05T08:52:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![joylix](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/joylix/32/4370_2.png) [@joylix](https://community.neo4j.com/u/joylix)\
**Post date:** [May 5, 2021, 8:52am UTC](https://community.neo4j.com/t/how-do-i-reference-a-node-in-relationship-property/37853/1 "2021-05-05T08:52:17Z")

</div>

Dear All:  
I want to implement something like the following:  
create (London:City {name:"London"})  
create (n:Person {name:"Nana"}) - [r:meet {date:"2021-02-05", city: London}] -\> (m:Person {name:"John"}) , but this doesn't work.  
it show error "Property values can only be of primitive types or arrays thereof".  
I can only use city:"London" .But my intention is to refer directly to node: London instead of string "London".  
I think maybe I'll have to build another event Node, like:  
create (event:Event {name: "meetEvent",date:"2021-02-05"})  
create (n: Person {name:"Nana"}) - [r: hasEvent] -\> (event)  
create (event) - [r: takePlaceIn] -\> (London)  
Is there a better way to do it?  
Thanks a lot !

---

<div class="post-metadata">

**Author:** ![joylix](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/joylix/32/4370_2.png) [@joylix](https://community.neo4j.com/u/joylix)\
**Post date:** [May 6, 2021, 3:06pm UTC](https://community.neo4j.com/t/how-do-i-reference-a-node-in-relationship-property/37853/2 "2021-05-06T15:06:43Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![andrew\_bowman](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/andrew_bowman/32/73_2.png) [@andrew\_bowman](https://community.neo4j.com/u/andrew_bowman)\
**Post date:** [May 7, 2021, 2:25pm UTC](https://community.neo4j.com/t/how-do-i-reference-a-node-in-relationship-property/37853/3 "2021-05-07T14:25:06Z")

</div>

That is correct, you cannot directly reference a node as a node or relationship property.

An :Event node makes sense.

---

<div class="post-metadata">

**Author:** ![joylix](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/joylix/32/4370_2.png) [@joylix](https://community.neo4j.com/u/joylix)\
**Post date:** [May 8, 2021, 12:57am UTC](https://community.neo4j.com/t/how-do-i-reference-a-node-in-relationship-property/37853/4 "2021-05-08T00:57:16Z")

</div>

I see. Thank you, Andrew
