Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
06-19-2020 07:31 PM
In my domain, I often need to enforce unique constraints that only apply within specific contexts. For example, I'd like Companies to have unique names within each Country, but it doesn't matter if a Company in a different Country has the same name.
To handle this in SQL, in the Company table I'd define a composite unique constraint on the Name field and the Country foreign key. But in Neo4j, the Country would be implemented using a relationship rather than a property on node.
So can I define a unique constraint that involves both a property and a relationship?
All the sessions of the conference are now available online