Based on previous cybersam answer on the following link How to create unique constraint involving multiple properties in Neo4J
I need to apply his answer on my use case.
CREATE CONSTRAINT ON ( city:City ) ASSERT city.cityName IS UNIQUE
CREATE CONSTRAINT ON ( city:City ) ASSERT city.regionIdentifier IS UNIQUE
That means combine these both properties as group (cityName,regionIdentifier)
CITY PROPERTIES
<id>:3
cityName:BLANKEMPTYVIDE1009
description:BLANKEMPTYVIDE1009
id:3
identifier:3374991009
region:BLANKEMPTYVIDE1009
regionIdentifier:100
zip:3374991009
The same thing should apply by combining these three properties on (sectorname,description,regionIdentifier)
CREATE CONSTRAINT ON ( sector:Sector ) ASSERT sector.description IS UNIQUE
CREATE CONSTRAINT ON ( sector:Sector ) ASSERT sector.regionIdentifier IS UNIQUE
CREATE CONSTRAINT ON ( sector:Sector ) ASSERT sector.sectorName IS UNIQUE
SECTOR PROPERTIES
<id>:2
city:BLANKEMPTYVIDE1002
cityIdentifier:3374991002
description:BLANKEMPTYVIDE1002_BLANKEMPTYVIDE1002
id:2
identifier:3374991002
region:BLANKEMPTYVIDE1002
regionIdentifier:100
sectorName:BLANKEMPTYVIDE1002_BLANKEMPTYVIDE1002
zip:BLANKEMPTYVIDE1002_BLANKEMPTYVIDE1002