Relationship constraint base on property

Hi! :slight_smile: ,

We want to add a database constraint that does not allow to have two relations between two nodes that have a certain labels, but we do not see an option as such.

For our case, for example, we have a node with label A, a node with label B and a relation that joins them with label REL, which contains the isActive property. Our idea is a constraint that does not allow between the nodes A - B two relations of label REL that contain the isActive property TRUE. Does anyone know of a possible solution that resembles a constraint?

Thanks in advance!