# Force relationships from a node label X to a node label Y to have specific properties

**URL:** <https://community.neo4j.com/t/force-relationships-from-a-node-label-x-to-a-node-label-y-to-have-specific-properties/6141>\
**Category:** Newbie Questions\
**Tags:** constraint, schema\
**Created:** [March 28, 2019, 4:10am UTC](https://community.neo4j.com/t/force-relationships-from-a-node-label-x-to-a-node-label-y-to-have-specific-properties/6141 "2019-03-28T04:10:32Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![neo4joe](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/neo4joe/32/2169_2.png) [@neo4joe](https://community.neo4j.com/u/neo4joe)\
**Post date:** [March 28, 2019, 3:06pm UTC](https://community.neo4j.com/t/force-relationships-from-a-node-label-x-to-a-node-label-y-to-have-specific-properties/6141/3 "2019-03-28T15:06:36Z")

</div>

Michael,  
I think with triggers you can do it right in Neo4j. Read David Allen's response to a question on triggers: [Triggers -- matching vs filtering on trigger criteria - #5 by neo4joe](https://community.neo4j.com/t/triggers-matching-vs-filtering-on-trigger-criteria/4180/5)

I believe you can create a trigger which upon creation of a relationship of type RELTYPE will kick off arbitrary code that you write, which can check the nodes it connects to and based on their types you can make changes to any of the 3 objects connected. They are all within scope.  
Joe

---

_[View the full topic](https://community.neo4j.com/t/force-relationships-from-a-node-label-x-to-a-node-label-y-to-have-specific-properties/6141)._
