# Different node properties based on a relationship property

**URL:** <https://community.neo4j.com/t/different-node-properties-based-on-a-relationship-property/11489>\
**Category:** Cypher\
**Tags:** knowledge-base\
**Created:** [October 31, 2019, 2:30pm UTC](https://community.neo4j.com/t/different-node-properties-based-on-a-relationship-property/11489 "2019-10-31T14:30:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bfv1996](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/bfv1996/32/7181_2.png) [@bfv1996](https://community.neo4j.com/u/bfv1996)\
**Post date:** [October 31, 2019, 2:30pm UTC](https://community.neo4j.com/t/different-node-properties-based-on-a-relationship-property/11489/1 "2019-10-31T14:30:57Z")

</div>

Hi,  
Is it possible to create nodes (with the same label) that have different properties based on a relationship property?

For example, if the relationship is **[:HAS\_RELATIONSHIP { type: "A" }]**, I want the target node has Property1 and Property2, if **[:HAS\_RELATIONSHIP { type: "B" }]** the target node has Property3 and Property4.

Thanks for the answers.

Beatriz

---

<div class="post-metadata">

**Author:** ![elaine\_rosenber](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/elaine_rosenber/32/27409_2.png) [@elaine\_rosenber](https://community.neo4j.com/u/elaine_rosenber)\
**Post date:** [October 31, 2019, 3:04pm UTC](https://community.neo4j.com/t/different-node-properties-based-on-a-relationship-property/11489/2 "2019-10-31T15:04:56Z")

</div>

Hello Beatriz,

Yes you can create any number of properties for a node or relationship. There is no restriction for the number or name of properties on a particular node or relationship. The only restriction would be if you placed an exists constraint on a node. This would then mean that when you create a node of a given type, it MUST have a particular property or an error will be raised.

Elaine
